S-Function
Include S-function in model
- Library:
Simulink / User-Defined Functions
Description
The S-Function block provides access to S-functions from a block diagram. The S-function named as theS-function nameparameter can be a Level-2 MATLAB®or a Level-1 or Level-2 C MEX S-function (seeMATLAB S-Function Basicsfor information on how to create S-functions).
Note
Use theLevel-2 MATLAB S-Functionblock to include a Level-2 MATLAB S-function in a block diagram.
The S-Function block displays the name of the specified S-function and the number of input and output ports specified by the S-function. Signals connected to the inputs must have the dimensions specified by the S-function for the inputs.
Parameters
Model Examples
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
[a]Actual data type or capability support depends on block implementation. [b]See Writing Fixed-Point S-Functions for details on using fixed-point data types in S-functions. |