issquare

Determines if x is a square matrix.

Syntax

R = issquare(x)

Inputs

x
Type: any input

Outputs

R
A logical 1 when x is a symmetric matrix, and 0 otherwise.
Type: Boolean

Example

Simple issquare example:

R = issquare(eye(10))
R = 1