Skip to content

isdiag

linear-algebra · scripts/linear-algebra/isdiag.m

: tf = isdiag (A)

Return true if A is a 2-D numeric matrix whose off-diagonal entries are all zero.

Rectangular and empty matrices are allowed. Other inputs give false.