mustBeMatrix
R2026bSyntax
Description
mustBeMatrix( throws an error if
value)value is not a matrix. A matrix is a two-dimensional array that has a
size of m-by-n, where
m and n are
nonnegative integers. This function does not return a value.
mustBeMatrix calls the ismatrix function to determine
if the input is a matrix.
Class support: All numeric classes, logical, and MATLAB® classes that overload ismatrix.