mustBeVectorOrEmpty
R2026bDescription
mustBeVectorOrEmpty( throws an error if
value)value is not a vector or an empty array. This function does not return
a value. mustBeVectorOrEmpty calls the isvector and isempty functions to determine if the input
is a vector or an empty array.
Class support: All numeric classes, logical, char,
string, and MATLAB® classes that implement isvector and
isempty.
Examples
Input Arguments
Tips
mustBeVectorOrEmptyis designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2026b
See Also
Functions
arguments|isvector|isempty|mustBeScalar|mustBeVector|mustBeRow|mustBeColumn|mustBeMatrix