Good morning,
I can't solve the problem of assignment from incompatible pointer type for the x and y pointer. The error that develops in Matlab, could be caused by the wrong use of the mxGetPr function for the x and y matrix pointers, but I don't know how to proceed.
Someone could give me directions.
thank you.
void mexFunction( int nlhs, mxArray *plhs[],int nrhs, const mxArray*prhs[] ){ double **x; double *z; double *p; double **y; int i = 2; int j = 5; plhs[0]= mxCreateDoubleMatrix((mwSize)i, (mwSize)j, mxREAL); x = mxGetPr(prhs[0]); z = mxGetPr(prhs[1]); p =mxGetPr(prhs[2]); y = mxGetPr(plhs[0]); functionsum(y,x,z,p); return;}
Best Answer