Writing S-Functions | ![]() ![]() |
When to Use an S-Function
The most common use of S-functions is to create custom Simulink blocks. You can use S-functions for a variety of applications, including:
penddemo
)
An advantage of using S-functions is that you can build a general purpose block that you can use many times in a model, varying parameters with each instance of the block.
![]() | Passing Parameters to S-Functions | How S-Functions Work | ![]() |