triu

upper triangle

Description

Upper triangle. See tril.

Examples

s=`poly`_(0,'s');
triu([s,s;s,1])
triu([1/s,1/s;1/s,1])

See Also

  • tril lower triangular part of matrix
  • ones matrix made of ones
  • eye identity matrix
  • diag diagonal including or extracting

Table Of Contents

This Page