istriu
Determines if the input is a upper triangular matrix.
Syntax
R = istriu(x)
Inputs
- x
- Type: any input
Outputs
- R
- A logical 1 when x is a upper triangular matrix, and 0 otherwise.
Example
Simple istriu example:
R = istriu([1,2;0,4])
R = 1