Main Content
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
triu
function to produce upper triangular matrices for whichistriu
returns logical1
(true
).The functions
isdiag
,istriu
, andistril
are 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))
.
Extended Capabilities
Version History
Introduced in R2014a