Main Content

IsTriangular

Check if matrix is upper or lower triangular

  • Library:
  • Simulink / Matrix Operations

  • Is Triangular block

Description

The IsTriangular block determines if the input is an upper triangular or lower triangular matrix.

Ports

Input

expand all

Input matrix, specified as a matrix.

Data Types: single | double | half | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | Boolean | fixed point

Output

expand all

Upper triangular or lower triangular matrix, specified scalar, returned as a real scalar boolean.

Data Types: Boolean

Parameters

expand all

Identify the matrix as Upper or Lower.

Programmatic Use

Block Parameter: Mode
Type: character vector
Values: 'Upper' | 'Lower'
Default: 'Upper'

Block Characteristics

Data Types

Boolean | double | fixed point | half | integer | single

Direct Feedthrough

no

Multidimensional Signals

no

Variable-Size Signals

no

Zero-Crossing Detection

no

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Introduced in R2021b