Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

triu (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: linalgebra

Requires: MathScript RT Module


c = triu(a)

c = triu(a, b)


Returns the upper triangular part of a matrix.



Name Description
a Specifies a matrix.
b Specifies a diagonal in a. b is an integer.


Name Description
c Returns the upper triangular part of a. If you specify b and b is not equal to 0, c returns all elements of a on and above the bth diagonal. c is a matrix of the same size as a.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized


A = [1-i, 3+4i; 5-7i, -i]
C = triu(A)

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful