Main Content
mustBeMatrix
Syntax
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 following function to determine if the input
is a matrix:
Class support: All numeric classes, logical
, and MATLAB® classes that overload ismatrix
.
Examples
Input Arguments
Extended Capabilities
Version History
Introduced in R2024b