Answered
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...

13 years ago | 0

Answered
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...

13 years ago | 1