MATLAB: Calling a standalone function to matlab function block

standalone

hi….I wonder if anyone has an idea about how to call a standalone function (like filter function or any function else which is in fact a subroutine)to matlab function block because my research needs such process….and whether matlab supports that or not? please help…thanks in advance.

Best Answer

You can use any of functions supported for code-generation inside a MATLAB Function block. However, if you do not plan to generate embedded C/C++ code from your Simulink model, you can declare unsupported functions using coder.extrinsic and use them in the block.