Real-Time Workshop User's Guide
Unsupported Blocks
The S-function format does not support the following built-in blocks:
MATLAB Fcn Block
S-Function blocks containing any of the following:
M-file S-functions
Fortran S-functions
C MEX S-functions that call into MATLAB
Scope block
To Workspace block
Restrictions
System Target File and Template Makefiles