Set an element of a block's mode vector
void ssSetModeVectorValue(SimStruct *S, int_T element, int_T value)
S
SimStruct representing an S-Function block.
element
Index of a mode vector element.
value
Mode vector value.
Sets the specified mode vector element to the specified value.
C, C++
The following statement
ssSetModeVectorValue(S, 0, 1.0);
sets the first element of the mode vector to 1.0
.