A répondu
Help with matrix indexing.
if "i" is 1, then you can not index into c with the row index "i-1". MATLAB uses 1-based indexing. You need to "special case" yo...

environ 13 ans il y a | 0

A répondu
Question about assigning prhs to an int * in a mex file.
int *data = (int *) mxGetData(prhs[0]); is what you need to do. mxGetData will return a void ptr which then needs to be "ca...

environ 13 ans il y a | 1