ensembleMetadata.variables
Return the names of variables in a state vector ensemble
Syntax
Description
variableNames = obj.variablesvariableNames = obj.variables(-1)
Returns the ordered list of variables in a state vector ensemble. The index of each variable in the list corresponds to the index of the variable in the state vector.
variableNames = obj.variables(v)
Returns the list of variables at the specified variable indices. The order of variables in the lsit corresponds to the order of input indices.
Input Arguments
v
-1 | logical vector | vector, linear indices
The indices of variables whose names should be returned. If -1, selects all variables in the state vector. If a logical vector, must have one element per variable in the state vector. Otherwise, use the linear indices of variables in the state vector.
Output Arguments
variableNames
string vector
The list of variable names