David
Farruggio

MathGenie

tril

Lower triangular part of matrix

Syntax and Description

tril(X) returns the lower triangular part of X.
tril(X,k) returns the elements on and below the kth diagonal of X. k = 0 is the main diagonal, k > 0 is above the main diagonal, and k < 0 is below the main diagonal.

Back to functions