ensemble.assertStaticMembers

Throw error if input is not members for a static ensemble


Syntax



Description

members = obj.assertStaticMembers(members)

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.

members = obj.assertStaticMembers(members, name, header)

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.

Output Arguments

members

column vector, linear indices
The ensemble members converted to a column vector of linear indices.