Specify the number of continuous states that a block has
void ssSetNumContStates(SimStruct *S, int_T n)
SimStruct representing an S-Function block.
Number of continuous states to be set for the block represented
mdlInitializeSizes to specify the
number of continuous states as 0, a positive integer, or
If you specify
DYNAMICALLY_SIZED, you can specify
the true (positive integer) width in
otherwise, the width used is the width of the signal passing through
the block. If your S-function has continuous states, it needs to return
the derivatives of the states in
that the solvers can integrate them. Continuous states are logged
if the States option is selected
on the Data Import/Export pane of the Configuration
Parameters dialog box.