Matrix Operations
R2026bBlocks 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 | Apply algorithm to each element of a matrix (Since R2024a) | |
| Create Diagonal Matrix | Create square diagonal matrix from diagonal elements | |
| Cross Product | Cross product of two vectors | |
| Expand Scalar | Create matrix from scalar using scalar expansion (Since R2024a) | |
| Extract Diagonal | Extract main diagonal of input matrix | |
| Hermitian Transpose | Compute hermitian transpose of matrix | |
| Identity Matrix | Generate matrix with ones on main diagonal and ground values elsewhere | |
| IsHermitian | Check if matrix is Hermitian or skew-Hermitian (Since R2022a) | |
| IsSymmetric | Check if matrix is symmetric or skew-symmetric | |
| IsTriangular | Check if matrix is upper or lower triangular | |
| 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 |
| Pixel Processing Subsystem | Create algorithm that converts multichannel image data to single-channel (Since R2024a) | |
| Submatrix | Select subset of elements (submatrix) from matrix input | |
| Transpose | Compute transpose of matrix |
Tools
| Library Browser | Find and add blocks to model |
Topics
- Add Blocks to Models
Use the Library Browser and quick insert menu to insert blocks.
