dash.stateVectorVariable.dimensionIndices

Return indices of dimensions within a state vector variable


Syntax



Description

d = obj.dimensionIndices(dimensions)

Returns the indices of the listed dimensions within the variable. The index of each dimension is the index of the design parameters for the dimension within the variable’s design properties. Indices are in the same order in which the dimensions were listed. If a listed dimension is not in the variable, returns an index of 0.


Input Arguments

dimensions

string vector [nDims]
A list of dimension names.

Output Arguments

d

vector, linear indices [nDims]
The index of each listed dimension within the variable. Uses an index of 0 for dimensions that are not in the variable.