Extract Triangular Matrix - Extract lower or upper triangle from input matrices

Library

Math Functions / Matrices and Linear Algebra / Matrix Operations

dspmtrx3

Description

The Extract Triangular Matrix block creates a triangular matrix output from the upper or lower triangular elements of an M-by-N input matrix. A length-M 1-D vector input is treated as an M-by-1 matrix.

The Extract parameter selects between the two components of the input:

The output has the same frame status as the input.

Examples

The example below shows the extraction of upper and lower triangles from a 5-by-3 input matrix.

Dialog Box

Extract

The component of the matrix to copy to the output, upper triangle or lower triangle.

Supported Data Types

PortSupported Data Types

A

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed and unsigned)

  • Boolean

  • 8-, 16-, and 32-bit signed integers

  • 8-, 16-, and 32-bit unsigned integers

U

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed and unsigned)

  • Boolean

  • 8-, 16-, and 32-bit signed integers

  • 8-, 16-, and 32-bit unsigned integers

L

  • Double-precision floating point

  • Single-precision floating point

  • Fixed point (signed and unsigned)

  • Boolean

  • 8-, 16-, and 32-bit signed integers

  • 8-, 16-, and 32-bit unsigned integers

See Also

Autocorrelation LPCSignal Processing Blockset
Cholesky FactorizationSignal Processing Blockset
Constant Diagonal MatrixSignal Processing Blockset
Extract DiagonalSignal Processing Blockset
Forward SubstitutionSignal Processing Blockset
LDL FactorizationSignal Processing Blockset
LU FactorizationSignal Processing Blockset
trilMATLAB
triuMATLAB

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS