Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ssGetModeVectorValue

Get an element of a block's mode vector

Syntax

int_T ssGetModeVectorValue(SimStruct *S, int_T elementx)

Arguments

S

SimStruct representing an S-Function block.

elementx

Index of a mode vector element.

Returns

An int_T value for the element of the mode vector specified by the index elementx. Returns NULL if no value was assigned into the elementx element of the mode vector.

Description

Use to obtain the specified mode vector element, where the element index start at 0 and end at the total number of modes minus 1.

Languages

C, C++

Example

The following statement

int_T v = ssGetModeVectorValue(S, 0);

is equivalent to

int_T* wv = ssGetModeVector(S);
int_T v = wv[0];

Introduced before R2006a

Was this topic helpful?