Main Content
ssGetNumContStates
Get the number of continuous states that a block has
Syntax
int_T ssGetNumContStates(SimStruct *S)
Arguments
S
SimStruct that represents an S-Function block or a Simulink® model.
Returns
An int_T
value indicating the number of continuous
states.
Description
Use to obtain the number of continuous states in the block or model represented by
S
. You can use this macro in any routine except
mdlInitializeSizes
.
Languages
C, C++
Examples
See the S-function stvctf.c
used in sfcndemo_stvctf
.
Version History
Introduced before R2006a