Main Content

ssGetRealDiscStates

Get a block's discrete state vector

Syntax

real_T *ssGetRealDiscStates(SimStruct *S) 

Arguments

S

SimStruct that represents an S-Function block.

Returns

The discrete state vector as an array of real_T elements of length ssGetNumDiscStates(S).

Description

Same as ssGetDiscStates.

Languages

C, C++

Examples

See the S-function dsfunc.c used in sfcndemo_dsfunc and the S-function vsfunc.c used in sfcndemo_vsfunc.

Version History

Introduced before R2006a