Writing S-Functions | ![]() ![]() |
S-Function Arguments
Simulink passes the following arguments to an S-function:
t
, the current timex
, the state vectoru
, the input vectorflag
, an integer value that indicates the task to be performed by the S-functionThe following table describes the values that flag can assume and lists the corresponding S-function method for each value.
![]() | Writing M S-Functions | S-Function Outputs | ![]() |