| Contents | Index |
User-Defined Functions
This block allows you to use a Level-2 MATLAB S-function (see Writing 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 the S-function name field of the block's parameter dialog box.
If the Level-2 MATLAB S-function defines any additional parameters, you can enter them in the Parameters field 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 a Level-2 MATLAB S-Function block, and an error occurs in the S-function, the Level-2 MATLAB S-Function block displays MATLAB stack trace information for the error in a dialog box. Click OK to close the dialog box.
Depends on the MATLAB file that defines the behavior of a particular instance of this block.

Specify the name of a MATLAB function that defines the behavior of this block. The MATLAB function must follow the Level-2 standard for writing MATLAB S-functions (see Writing Level-2 MATLAB S-Functions for details).
Specify values of the parameters of this block.
Direct Feedthrough | Depends on the MATLAB S-function |
Sample Time | Depends on the MATLAB S-function |
Scalar Expansion | Depends on the MATLAB S-function |
Dimensionalized | Depends on the MATLAB S-function |
Multidimensionalized | Yes |
Zero Crossing | No |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |