Technical data

Inlining an S-Function
3-41
Figure 3-3 shows the RTW dialog box with the change to modify the
FileSizeThreshold.
Figure 3-3: RTW Dialog Box
Matrix Parameters in RTW
MATLAB matrices are the transpose of RTW matrices, with the exception of
S-function blocks, which use the MATLAB representation. MATLAB uses
column-major ordering and RTW uses row-major ordering for everything
except S-function blocks. The Target Language Compiler follows this behavior
to ensure backward compatibility.
The Target Language Compiler declares all Simulink block parameters as
real_T mat[nRows][nCols];
with the exception of S-function blocks, which are declared as
real_T mat[nCols][nRows];