Target Language Compiler | ![]() ![]() |
S-Function Parameters
The parameters written to the model.rtw
file are defined in the following table. The mdlRTW
method of level 2 C MEX S-functions is especially useful for adding information to your S-function block records to enable more efficient or elegant inlining. In the following table:
Sizes
is an extra parameter of length 2 that gives the number of rows and number of columns in the parameter.
Prms
is a type of S-function parameter allowed.
S-Function |
No *.tlc |
Have *.tlc |
Does not have mdlRTW |
Sizes => double , Prms => double Error if non-C MEX S-function |
Prms => double or string (int16 ) |
Has mdlRTW |
Error |
No sizes, Prms => any data type |
![]() | Inlining C MEX S-Functions | A Complete Example | ![]() |