Documentation Center

  • Trial Software
  • Product Updates

Contents

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.cstvctf.c used in sfcndemo_stvctfsfcndemo_stvctf.

Was this topic helpful?