Validate that value is vector
mustBeVector(
throws an error if value
)value
is not a vector. A vector has dimension of 1-by-n or n-by-1. This function does not return a value.
mustBeVector(
throws an error if value
,"allow-all-empties")value
is not a vector or not an empty array.
mustBeVector
calls the following function to determine if the input is a vector:
Class support: All numeric classes, logical
, and MATLAB® classes that overload isvector
.
mustBeVector
is designed to be used for property and function argument validation.