mustBeVector
R2026bValidate that value is vector
Syntax
Description
mustBeVector( throws an error if
value)value is not a vector. A vector has dimensions of
1-by-n or n-by-1. This function does not return a
value. mustBeVector calls the isvector function to determine if the input is a vector.
Class support: All numeric classes, logical, char,
string, and MATLAB® classes that implement isvector.
Examples
Input Arguments
Tips
mustBeVectoris designed to be used for property and function argument validation.