MATLAB: MEXCallMatlab very slow. Suggest alternate

mexmex compiler

Hi, I am working on a MEX file. I am using MEXCallMatlab which is very slow to call matlab inbuilt function as well as user defined function. It is not possible for me to make mex for other files since they are in large number and each of them is calling many in-built. Thanks.

Best Answer

mexCallMATLAB is slow. Calling built-in Matlab functions from a MEX is no good idea.