Main Content

Matrix Operations

Blocks for modeling matrix operations

Use blocks from the Matrix Operations library to model common matrix operations.


Array Processing SubsystemApply algorithm to each element of a matrix (Since R2024a)
Create Diagonal MatrixCreate square diagonal matrix from diagonal elements
Cross ProductCross product of two vectors (Since R2021b)
Expand ScalarCreate matrix from scalar using scalar expansion (Since R2024a)
Extract DiagonalExtract main diagonal of input matrix
Hermitian TransposeCompute hermitian transpose of matrix (Since R2021b)
Identity MatrixGenerate matrix with ones on main diagonal and ground values elsewhere (Since R2021b)
IsHermitianCheck if matrix is Hermitian or skew-Hermitian (Since R2022a)
IsSymmetricCheck if matrix is symmetric or skew-symmetric (Since R2021b)
IsTriangularCheck if matrix is upper or lower triangular (Since R2021b)
Matrix ConcatenateConcatenate input matrices of same data type for iterative processing
Matrix SquareCompute square of input matrix
Neighborhood Processing SubsystemCreate algorithm that follows the neighborhood pattern (Since R2022b)
Permute MatrixReorder matrix rows or columns
Pixel Processing SubsystemCreate algorithm that converts multichannel image data to single-channel (Since R2024a)
Product, Matrix MultiplyMultiply and divide scalars and nonscalars or multiply and invert matrices
SubmatrixSelect subset of elements (submatrix) from matrix input
TransposeCompute transpose of matrix (Since R2021b)