ismatrix
determines whether input is matrix or not
📝Syntax
TF = ismatrix(A)
📥Input Arguments
Parameter Description
A input array as a scalar, vector, matrix, or multidimensional array.
📤Output Arguments
Parameter Description
TF a logical: true if it is a matrix.
📄Description

TF = ismatrix(A) returns true if A is a matrix.

A matrix is a two-dimensional array that has a size of m-by-n, where m and n are nonnegative integers.

💡Examples
x = [1+i,-i;i,2i];
ismatrix(x)
ismatrix(ones(3,1,2))
🔗See Also
isvector
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub