/* 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 < nrhs;i++) { pdata = mxGetScalar(prhs[i]); mexPrintf("%d\n",(int)pdata); } return; }