istriu
Determine if matrix is upper triangular
Syntax
Description
tf = istriu( returns logical A)1
(true) if A is an upper triangular matrix.
Otherwise, it returns logical 0
(false).
Examples
Input Arguments
More About
Tips
Use the
triufunction to produce upper triangular matrices for whichistriureturns logical1(true).The functions
isdiag,istriu, andistrilare special cases of the functionisbanded, which can perform all of the same tests with suitably defined upper and lower bandwidths. For example,istriu(A) == isbanded(A,0,size(A,2)).