Returns the upper triangular part of a matrix.
c = triu(a)
c = triu(a, b)
Diagonal in a. b is an integer.
Upper triangular part of a. If you specify b and b is not equal to 0, c returns all elements of a on and above the bth diagonal. c is a matrix of the same size as a.
A = [1-i, 3+4i; 5-7i, -i]; C = triu(A)
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices