MATLAB: How to call Matlab functions from C S functions

MATLABs-functionsimulink

Hi,
Is it possible to call matlab functions from C S functions? I would need to call fzero and I do not wish to create another C function with the algorithm.
Thanks. Remus.

Best Answer

You can use mexCallMATLAB, but will need to create/destroy mxArrays as needed.