Main Content

IsSymmetric

Check if matrix is symmetric or skew-symmetric

Since R2021b

  • IsSymmetric block

Libraries:
Simulink / Matrix Operations

Description

The IsSymmetric block determines if the input is a symmetric or skew-symmetric matrix.

Ports

Input

expand all

Input, specified as a matrix.

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

Output

expand all

A symmetric or skew-symmetric matrix, returned as a real scalar boolean.

Data Types: Boolean

Parameters

expand all

Identify the matrix as Symmetric or Skew-Symmetric.

Programmatic Use

Block Parameter: Mode
Type: character vector
Values: 'Symmetric' | 'Skew-Symmetric'
Default: 'Symmetric'

Block Characteristics

Data Types

Boolean | double | fixed point | half | integera | single

Direct Feedthrough

yes

Multidimensional Signals

no

Variable-Size Signals

no

Zero-Crossing Detection

no

a This block only supports signed integer types for the skew-symmetric mode.

Extended Capabilities

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

Version History

Introduced in R2021b