<< tril | Elementary functions | vander >> |
T = triu(M) |
T = triu(M, k) |
2D input matrix
Diagonals to include: integer real value
Upper Triangular Portions of Matrix
triu computes Upper Triangular Portions of Matrix.
R = triu(M, k) returns the elements on and above the kth diagonal of M.
x = [1+i,-i;i,2i];
r = triu(x)
diag.
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET