Writing S-Functions Previous page   Next Page

Main Method

The body of the main function of a Level-2 M-file S-function initializes instances of the corresponding Level-2 M-File S-Function block in a model. In this respect, the main function is similar to the mdlInitializeSizes callback method implemented by C-Mex S-functions. Setup tasks that the main function performs include:


Previous page  Callback Methods Runtime Object Next page

© 1994-2005 The MathWorks, Inc.