triu
Upper triangular part of matrix
📝 Syntaxe
T = triu(M)
T = triu(M, k)
📥 Argument d'entrée
M - 2D input matrix
k - Diagonals to include: integer real value
📤 Argument de sortie
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.
💡 Exemple
x = [1+i,-i;i,2i];
r = triu(x)🔗 Voir aussi
diag.
🕔 Historique
Version
📄 Description
1.0.0
version initiale
Last updated
Was this helpful?