Level-2 MATLAB S-Function
Use Level-2 MATLAB S-function in model
- 库:
Simulink / User-Defined Functions
Description
This block allows you to use a Level-2 MATLAB®S-function (seeWrite Level-2 MATLAB S-Functions) in a model. To do this, create an instance of this block in the model. Then enter the name of the Level-2 MATLAB S-function in theS-function namefield of the block's parameter dialog box.
Note
Use theS-Functionblock to include a Level-1 MATLAB S-function in a block.
If the Level-2 MATLAB S-function defines any additional parameters, you can enter them in theParametersfield of the block's parameter dialog box. Enter the parameters as MATLAB expressions that evaluate to their values in the order defined by the MATLAB S-function. Use commas to separate each expression.
If a model includes aLevel-2 MATLAB S-Functionblock, and an error occurs in the S-function, theLevel-2 MATLAB S-Functionblock displays MATLAB stack trace information for the error in a dialog box. ClickOKto close the dialog box.