triu
Upper triangular part of matrix
Syntax
T = triu(M)
T = triu(M, k)
Input argument
M - 2D input matrix
k - Diagonals to include: integer real value
Output argument
R - Upper Triangular Portions of Matrix
Description
triu computes Upper Triangular Portions of Matrix.
R = triu(M, k) returns the elements on and above the kth diagonal of M.
Example
See also
diag.
History
Version
Description
1.0.0
initial version
Author
Allan CORNET
Last updated