UpTri Function
Returns the top triangle of a matrix
Description
The Function \(UpTri\) returns the upper triangle of a matrix, with or without diagonal, depending on the parameter.
By default, the upper triangle with the first diagonal is returned as a result. If a 0 is passed in the optional second parameter, the result is the upper triangle without diagonal.
Syntax
UpTri (Matrix)
UpTri (Matrix, 0)
Example