mustBeVector
Validate that value is vector
Description
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.
Examples
Input Arguments
Tips
mustBeVectoris designed to be used for property and function argument validation.
Extended Capabilities
Version History
Introduced in R2020b