Array and Matrix Mathematics
You can perform several mathematical operations on arrays and matrices using System objects and blocks in the DSP System Toolbox™. These operations include simple operations such as addition, subtraction, multiplication, and division, and more complex operations such as cumulative sum, cumulative product, and normalization. You can also extract diagonals and upper and lower triangles from matrices. In addition, there are DSP System Toolbox blocks that perform polynomial fitting in a least-squares sense, evaluate polynomial expressions, and determine if the roots of a polynomial are inside the unit circle.
|Add vector to array along specified dimension
|Divide array by vector along specified dimension
|Multiply array by vector along specified dimension
|Subtract vector from array along specified dimension
|Cumulative product of channel, column, or row elements
|Cumulative sum of channel, column, or row elements
|Convert magnitude data to decibels (dB or dBm)
|Apply decibel gain
|Compute element-to-element difference along specified dimension of input
|Perform vector normalization along rows, columns, or specified dimension
|Extract Triangular Matrix
|Extract lower or upper triangle from input matrices
|Compute 1-norm of matrix
|Concatenate input matrices of same data type for iterative processing
|Compute matrix exponential
|Multiply and divide scalars and nonscalars or multiply and invert matrices
|Multiply matrix elements along rows, columns, or entire input
|Add or subtract inputs
|Overwrite submatrix or subdiagonal of input
|Compute reciprocal condition of square matrix in 1-norm
|Generate matrix with Toeplitz symmetry
- Compute Difference of a Matrix
Simulink® model example that shows how to calculate the rowwise and columnwise difference of a matrix.
- Compute Maximum Column Sum of Matrix
Simulink model example that shows how to calculate the max column sum of a matrix.
- Compute Matrix Exponential
Use the Matrix Exponential block to compute the matrix exponential of a square matrix.
- Variable-Size Signal Support DSP System Objects
List of System objects that support variable-sized signals in DSP System Toolbox.