ensemble.assertEvolvingMembers
Throw error if input is not members for an evolving ensemble
Syntax
Description
Checks that the input members is a matrix of indices, where each column describes a set of indices. Requires the same number of indices along each column. Converts logical indices to linear indices for each column. Optionally checks that the number of members matches the current number of members, and that the number of evolving ensembles matches the current number of evolving ensembles.
Customize error messages and IDs.
Input Arguments
members
any data type
The input being checked
nRows
scalar positive integer | []
The required number of members per column. If empty, allows any number.
nCols
scalar positive integer | []
The required number of columns/sets of indices. If empty, allows any number.
name
string scalar
The name of the input for use in error messages
header
string scalar
Header for thrown error IDs
Output Arguments
members
matrix, linear indices
The members as linear indices