Skip to Main Content Skip to Search
Product Documentation

ssGetRealDiscStates - Get a block's discrete state vector

Syntax

real_T *ssGetRealDiscStates(SimStruct *S) 

Arguments

S

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

Example

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

See Also

ssGetDiscStates

  


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