FUNCTION REFERENCE

mustBeMember

Validate that value is a member of a specified set.

Validate that value is a member of a specified set.

Syntax

mustBeMember(A, S)

Throws an error if any element of A is not a member of S.

Example

mustBeMember(2, [1 2 3])

Differences from MATLAB: None.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.