Simulink Reference Previous page   Next Page
Level-2 M-File S-Function

Use a Level-2 M-file S-function in a model.

Library

User-Defined Functions

Description

This block allows you to use a Level-2 M-file S-function (see Writing Level-2 M-File 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 M-File S-function in the M-file name field of the block's parameter dialog box.

If the Level-2 M-file S-function defines any additional parameters, you can enter them in the Parameters field of the block's parameter dialog box. Enter them as MATLAB expressions that evaluate to their values in the order defined by the M-file S-function. Use commas to separate each expression.

Data Type Support

Depends on the M-file that defines the behavior of a particular instance of this block.

Parameters and Dialog Box

M-file name
Name of an M-file that defines the behavior of this block. The M-file must follow the Level-2 standard for writing M-file S-functions (see Writing Level-2 M-File S-Functions).
Parameters
Values of the parameters of this block.

Characteristics

Direct Feedthrough
Depends on the M-file S-function
Sample Time
Depends on the M-file S-function
Scalar Expansion
Depends on contents M-file S-function
Dimensionalized
Depends on the M-file S-function
Zero Crossing
No


Previous page  Interval Test Dynamic Logical Operator Next page

© 1994-2005 The MathWorks, Inc.