/* Hello fucntion for MATLAB 5.x By Gerox Programmed by Gerox 1999.July 6 */ #include #include "mex.h" void mexFunction(int nlhs,mxArray *plhs[],int nrhs,const mxArray * prhs[]) { int i; double* pdata; mexPrintf("Hello World nlhs = %d nrhs = %d\n",nlhs,nrhs); for(i = 0;i < nlhs;i++) { plhs[i] = mxCreateDoubleMatrix(1,1,mxREAL); pdata = mxGetPr(plhs[i]); pdata[0] = i+10; } return; }