Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssSetModeVectorValue - Set an element of a block's mode vector

Syntax

void ssSetModeVectorValue(SimStruct *S, int_T element, int_T value)

Arguments

S

SimStruct representing an S-Function block.

element

Index of a mode vector element.

value

Mode vector value.

Description

Sets the specified mode vector element to the specified value.

Languages

C, C++

Example

The following statement

ssSetModeVectorValue(S, 0, 1.0);

sets the first element of the mode vector to 1.0.

See Also

ssGetModeVectorValue, ssGetModeVector

  


Related Products & Applications

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

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