ismatrix

determines whether input is matrix or not

📝 Syntaxe

  • TF = ismatrix(A)

📥 Argument d'entrée

  • A - input array as a scalar, vector, matrix, or multidimensional array.

📤 Argument de sortie

  • 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.

💡 Exemple

x = [1+i,-i;i,2i];
ismatrix(x)
ismatrix(ones(3,1,2))

🔗 Voir aussi

isvector.

🕔 Historique

Version
📄 Description

1.0.0

version initiale

Last updated

Was this helpful?