Validate that value is vector
mustBeVector(
throws an error ifvalue
)value
is not a vector. A vector has dimension of 1-by-norn-by-1. This function does not return a value.
mustBeVector(
throws an error ifvalue
,"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 overloadisvector
.
mustBeVector
is designed to be used for property and function argument validation.