Labrador/Old Matlab Interface/helloworld.cpp

19 lines
352 B
C++
Raw Normal View History

2016-09-07 07:36:43 +01:00
#include <math.h>
#include <matrix.h>
#include <mex.h>
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
{
unsigned char n;
char *garen;
garen = mxArrayToString(prhs[0]);
mexPrintf("nlhs = %d\n", nlhs);
mexPrintf("nrhs = %d\n", nrhs);
mexPrintf("STRING = %s\n", garen);
return;
}