ensemble.assertStaticMembers
Throw error if input is not members for a static ensemble
Syntax
Description
Throw error if input is not a vector of indices for members of a static ensemble. If the input passes the assertion, returns ensemble members as linear indices.
Customize error messages and IDs.
Input Arguments
members
any data type
The input being checked. Valid members should be a vector of linear indices for ensemble members
name
string scalar
The name of the input for error messages.
header
string scalar
Header for thrown error IDs
Output Arguments
members
column vector, linear indices
The ensemble members converted to a column vector of linear indices.