ensembleMetadata.identify

Identifies the variables associated with rows of a state vector


Syntax



Description

[variableNames, v] = obj.identify

Returns the name of the variable associated with each row of a state vector. Also returns the index of each variable as the second output. The outputs will have one element per row in the state vector.

= obj.identify(rows)
= obj.identify(-1)

Returns the names and indices of the variables associated with the specified rows. If the input is -1, selects all rows. The outputs will have one element per listed row.


Input Arguments

rows

-1 | logical vector | vector, linear indices
Rows of the state vector for which to identify the associated variables. If -1, selects all state vector rows. If a logical vector, must have the same length as the state vector.

Output Arguments

variableNames

string vector [nRows]
The names of the variables associated with each of the listed rows.

v

vector, linear indices [nRows]
The indices of the variables associated with each of the listed rows.