ensemble.nVariables
Returns the number of variables for the elements of an ensemble array
Syntax
Description
nVariables = obj.nVariables
Returns the number of used variables for each element of an ensemble array.
nVariables = obj.nVariables(scope)= obj.nVariables(false|”u”|”used”)= obj.nVariables( true|”f”|”file”)
Indicate the scope in which to count variables. If “used”|”u”|false, behaves identically to the previous syntax and returns the number of used variables for each element of an ensemble array. If “file”|”f”|true, returns the number of variables stored in the .ens file for each element of an ensemble array.
Input Arguments
scope
scalar logical | string scalar
Indicates the scope in which to count variables.
[“used”|”u”|false (default)]: Returns the number of variables used by the ensemble
[“file”|”f”|true]: Return the number of variables saved in the .ens file
Output Arguments
nVariables
numeric array
The number of variables in each element of an ensemble array. Has the same size as obj.