Following lines of code is not giving me desired result, I want to have the value of plhs[5] in a double variable.
...
plhs[5]= mxCreateDoubleMatrix(1,1,mxREAL);
/*At this place I have some mexCallFunctions to assign plhs[5] some values*/
mexCallMATLAB(0,NULL,1,&plhs[5],"disp");
/* The above call gives me 1/3, which is correct*/
double *lr;
lr =mxGetPr(plhs[5]);
mexPrintf("\nvalue of lr:%e",lr[0]);
/* The above lines gives me 3.133877e-306, don't know why??*/
Please help me.
...
plhs[5]= mxCreateDoubleMatrix(1,1,mxREAL);
/*At this place I have some mexCallFunctions to assign plhs[5] some values*/
mexCallMATLAB(0,NULL,1,&plhs[5],"disp");
/* The above call gives me 1/3, which is correct*/
double *lr;
lr =mxGetPr(plhs[5]);
mexPrintf("\nvalue of lr:%e",lr[0]);
/* The above lines gives me 3.133877e-306, don't know why??*/
Please help me.