Skip to Main Content Skip to Search
Product Documentation

ssGetNumContStates - Get the number of continuous states that a block has

Syntax

int_T ssGetNumContStates(SimStruct *S)

Arguments

S

SimStruct representing 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++

Example

See the S-function stvctf.c used in sfcndemo_stvctf.mdl.

See Also

ssSetNumContStates, ssGetNumDiscStates, ssGetContStates

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS