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