Writing S-Functions | ![]() ![]() |
S-Function Arguments
Simulink passes the following arguments to an S-function:
t |
Current time |
x |
State vector |
u |
Input vector |
flag |
Integer value that indicates the task to be performed by the S-function |
The 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 | ![]() |