I read the second variable in C++
#define D prhs[1]
double* d = mxGetPr(D); // get the pointer
Now I want to get the size of D
int mySize = mxGetM(D);
cool...Now how can I get the size from the pointer d
(not D
)?
int mySize = mxGetM((const mxArray) d); // does not work
Thanks