ensembleMetadata.variableIndices
Parse and return indices of variables in a state vector ensemble
Syntax
Description
Parses the indices of input variables. Returns linear indices to input variables.
Indicate whether to throw an error when repeated variables occur.
Customize header in thrown error IDs
Input Arguments
variables
any data type
The input being parsed. If valid, a set of variable names or indices of variables in the state vector.
allowRepeats
scalar logical
Whether to allow repeated variables (true - default) or to throw an error when repeats occur (false)
header
string scalar
Header for thrown error IDs
Output Arguments
v
vector, linear indices
The indices of the variables in the state vector.