Main Content

Matrix Operations

R2026b
Blocks for manipulating matrices and processing arrays, such as Transpose, Matrix Concatenate, and Cross Product

Use blocks from the Matrix Operations library to manipulate matrices and process arrays. You can transpose, concatenate, and permute matrices, create diagonal and identity matrices, check matrix properties, and process arrays element-by-element or by neighborhood.

To add blocks from this library to your model, see Add Blocks to Models.

Blocks

Array Processing Subsystem blockArray Processing SubsystemApply algorithm to each element of a matrix (Since R2024a)
Create Diagonal Matrix blockCreate Diagonal MatrixCreate square diagonal matrix from diagonal elements
Cross Product blockCross ProductCross product of two vectors
Expand Scalar blockExpand ScalarCreate matrix from scalar using scalar expansion (Since R2024a)
Extract Diagonal blockExtract DiagonalExtract main diagonal of input matrix
Hermitian Transpose blockHermitian TransposeCompute hermitian transpose of matrix
Identity Matrix blockIdentity MatrixGenerate matrix with ones on main diagonal and ground values elsewhere
Is Hermitian blockIsHermitianCheck if matrix is Hermitian or skew-Hermitian (Since R2022a)
IsSymmetric blockIsSymmetricCheck if matrix is symmetric or skew-symmetric
Is Triangular blockIsTriangularCheck if matrix is upper or lower triangular
Matrix Concatenate blockMatrix ConcatenateConcatenate input matrices of same data type for iterative processing
Matrix Square blockMatrix SquareCompute square of input matrix
Neighborhood Processing Subsystem blockNeighborhood Processing SubsystemCreate algorithm that follows the neighborhood pattern (Since R2022b)
Permute Matrix blockPermute MatrixReorder matrix rows or columns
Pixel Processing Subsystem blockPixel Processing SubsystemCreate algorithm that converts multichannel image data to single-channel (Since R2024a)
Submatrix blockSubmatrixSelect subset of elements (submatrix) from matrix input
Transpose blockTransposeCompute transpose of matrix

Tools

Library BrowserFind and add blocks to model

Topics