October 7th, 2011, 6:25 pm
outrun, yeah, that's the official MATLAB-provided "mex.h" C API I've mentioned, the ugly one (IMO)."plhs = mxCreateDoubleMatrix(m, n, mxREAL);" // and it's not type safe, eitherCompare this (C API) with this (C++ API).The difference is between C and C++. Although C is simple, C++ might be somewhat more expressive.It's also about style:n = mxGetNumberOfElements(prhs[0]); // C APIn = indata.ncols(); // C++ API Just my 2 cents.
Last edited by
Polter on October 6th, 2011, 10:00 pm, edited 1 time in total.