trilLower triangular part of a matrix
tril(X)X should be a numeric matrix, i.e., ndims(X) equal to 2.X, i.e., elements below or on the main diagonal of X.X is a character array, elements above the main diagonal are filled with the white-space characters.X is empty.tril(X, k)k should be an integer scalar, not equal to NaN nor Inf.k < 0, it returns elements below or on the k-th lower diagonal of X.k > 0, it returns elements below or on the k-th upper diagonal of X.k == 0, it returns the same result as tril(X).tril() extracts the lower triangular part of a character array. The upper part is filled with spaces.a=['abcd';'efgh';'ijkl';'mnop']
tril(a)
a =
abcd
efgh
ijkl
mnop
ans =
a
ef
ijk
mnop