Skip to content
This repository was archived by the owner on May 21, 2020. It is now read-only.
Florian Rappl edited this page Dec 21, 2014 · 2 revisions

triu

The function computes the upper triangle matrix of a given matrix.

triu(M)

Given a square matrix the function computes the upper triangular matrix.

Argument M

Matrix

Returns 1. entry

Matrix

Example

triu(rand(4))

Computes the upper triangle matrix of the given 4x4 random matrix.

Clone this wiki locally