MATLAB: Call mexfile from sfunction

embedded matlab functionMATLAB C/C++ Graphics LibraryMATLAB Compilerreal time workshopSimulink Acceleratorsimulink fixed pointstateflow

Hi how can I call a mex-file in an S-Function Builder in simulink? I find a mex-file in the internet and don't know about its source code. this mex-file hase several inputs argumant and several outputs. I wanna to use it in my sfunction, but donn't know how can I do it.

Best Answer

Hi,
at least a mexCallMATLAB from the S-function should work. Or also runtime dynamic linking. See my post here: