Main Content

Transpose

R2026b

Compute transpose of matrix

  • Transpose block

Libraries:
Simulink / Matrix Operations

Description

The Transpose block computes the transpose of an M-by-N matrix.

Ports

Input

expand all

Matrix, specified as an M-by-N matrix.

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

Output

expand all

Transposed matrix, returned as an N-by-M matrix.

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

Block Characteristics

Data Types

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

Direct Feedthrough

yes

Multidimensional Signals

yes

Variable-Size Signals

yes

Zero-Crossing Detection

no

Programmatic Use: Add Block

To add the block programmatically, use the add_block function with one of these library block paths as the source.

"simulink/Matrix Operations/Transpose"

Example: add_block("simulink/Matrix Operations/Transpose","myModel/myBlock",MakeNameUnique="on")

Extended Capabilities

expand all

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

Version History

Introduced in R2021b