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