Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Determine if matrix is diagonal

- example
`tf = isdiag(A)`

`tf = isdiag(`

returns
logical `A`

)`1`

(`true`

) if `A`

is
a diagonal matrix;
otherwise, it returns logical `0`

(`false`

).

Was this topic helpful?