isdiag
- :
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.
isdiagtf = 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.