Writing S-Functions Previous page   Next Page

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

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.


Previous page  Passing Parameters to S-Functions How S-Functions Work Next page

© 1994-2005 The MathWorks, Inc.