5
* Test function : Storing a Matrix in Scilab workspace
6
* mexPutFull uses cwritemat
9
void mexfunction12(nlhs, plhs, nrhs, prhs)
11
Matrix *plhs[]; Matrix *prhs[];
16
if (nrhs != 0) mexErrMsgTxt("Invalid number of inputs!");
17
array_ptr = mxCreateFull(m,n,it);
18
B = mxGetPr(array_ptr);
19
for (i=0 ; i < m*n ;i++ ) B[i]= (double) i;
20
mexPutFull("C",&m,&n,B,NULL);