MATLAB: Can I use recursive functions in the Embedded MATLAB block in Simulink

embeddedemlfunctionMATLABrecursionrecursivesimulink

I would like to implement an algorithm which uses recursion in my Simulink model. Is the Embedded MATLAB block the appropriate way to accomplish this goal?

Best Answer

This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
The ability to use recursive functions in an Embedded MATLAB block is not available in Simulink.
There are no workarounds.