Simulink 6 in Release 14 adds a major step forward in MATLAB language support; the Embedded MATLAB Function block.
This block offers enhanced functionality for creating M-file S-functions.
Unlike the MATLAB Compiler (which is for desktop deployment of the full MATLAB language), Embedded MATLAB Function block integrates with Real-Time Workshop 6 to generate C code from a subset of the MATLAB language that can be deployed on any embedded processor that supports an ANSI C compiler.
Colin Warwick (2020). Random source using the Embedded MATLAB Function Block (https://www.mathworks.com/matlabcentral/fileexchange/5026-random-source-using-the-embedded-matlab-function-block), MATLAB Central File Exchange. Retrieved .
Corrected version information