Main Content

IsTriangular

Check if matrix is upper or lower triangular

Since R2021b

  • Is Triangular block

Libraries:
Simulink / Matrix Operations

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

yes

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™.

Version History

Introduced in R2021b