Writing S-Functions |
 |
Custom Data Types
An S-function can accept and output user-defined as well as built-in Simulink data types. To use a user-defined data type, the S-function's mdlInitializeSizes
routine must:
- Register the data type, using ssRegisterDataType.
- Specify the amount of memory in bytes required to store an instance of the data type, using ssSetDataTypeSize.
- Specify the value that represents zero for the data type, using ssSetDataTypeZero.
| Masked Multiport S-Functions | | Sample Times |  |