FUNCTION REFERENCE
tril
Lower triangular part.
Lower triangular part.
Syntax
tril(A)Syntax
tril(A, k)Keeps entries on and below diagonal k (default 0) and zeros the rest.
Example
tril([1 2; 3 4]) % [1 0; 3 4]Differences from MATLAB: Real 2-D arrays only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.