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

Syntax

c = triu(a)

c = triu(a, b)

Description

Returns the upper triangular part of a matrix.

Examples

Inputs

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

Outputs

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.

Details

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

Examples

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

Related Topics

tril


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit