Main Content

# Matrix Operations

Blocks for modeling matrix operations

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

## Blocks

 Create Diagonal Matrix Create square diagonal matrix from diagonal elements Cross Product Cross product of two vectors (Since R2021b) Extract Diagonal Extract main diagonal of input matrix Hermitian Transpose Compute hermitian transpose of matrix (Since R2021b) Identity Matrix Generate matrix with ones on main diagonal and ground values elsewhere (Since R2021b) IsHermitian Check if matrix is Hermitian or skew-Hermitian (Since R2022a) IsSymmetric Check if matrix is symmetric or skew-symmetric (Since R2021b) IsTriangular Check if matrix is upper or lower triangular (Since R2021b) Matrix Concatenate Concatenate input matrices of same data type for iterative processing Matrix Square Compute square of input matrix Neighborhood Processing Subsystem Create algorithm that follows the neighborhood pattern (Since R2022b) Permute Matrix Reorder matrix rows or columns Product, Matrix Multiply Multiply and divide scalars and nonscalars or multiply and invert matrices Submatrix Select subset of elements (submatrix) from matrix input Transpose Compute transpose of matrix (Since R2021b)