LOTRIX

Purpose:

Returns the lower triangle of a matrix, excluding the main diagonal.

Syntax:

LOTRIX(a)

a

-

A matrix.

Returns:

An array of size(a) consisting of the lower triangle of a, excluding the main diagonal, with the other elements set to 0.

Example:

W1: ones(3)

W2: lotrix(W1)

 

W2 == {{0, 0, 0},

       {1, 0, 0}, 

       {1, 1, 0}} 

Remarks:

LOTRIX excludes the main diagonal. Use LOTRI to include the main diagonal.

 

See TRIL to return the lower matrix below a specified diagonal.

See Also:

COLNOS

LOTRI

ROWNOS

TRIL

UPTRI

UPTRIX