WLJS LogoWLJS Notebook

SquareMatrixQ

SquareMatrixQ[m] gives True if m is a square matrix, and False otherwise.

Examples

SquareMatrixQ[{{1, 2}, {3, 4}}]
(* True *)
SquareMatrixQ[{{1, 2, 3}, {4, 5, 6}}]
(* False *)

Please visit the official Wolfram Language Reference for more details.

On this page