Main Content

Array and Matrix Mathematics

R2026b
Array and matrix operations, polynomial fitting

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.

Blocks

expand all

Array-Vector Add blockArray-Vector AddAdd vector to array along specified dimension
Array-Vector Divide blockArray-Vector DivideDivide array by vector along specified dimension
Array-Vector Multiply blockArray-Vector MultiplyMultiply array by vector along specified dimension
Array-Vector Subtract blockArray-Vector SubtractSubtract vector from array along specified dimension
Cumulative Product blockCumulative ProductCumulative product of channel, column, or row elements
Cumulative Sum blockCumulative SumCumulative sum of channel, column, or row elements
dB Conversion blockdB ConversionConvert magnitude data to decibels (dB or dBm)
dB Gain blockdB GainApply decibel gain
Difference blockDifferenceCompute element-to-element difference along specified dimension of input
Normalization blockNormalizationPerform vector normalization along rows, columns, or specified dimension
Extract Triangular Matrix blockExtract Triangular MatrixExtract lower or upper triangle from input matrices
Matrix 1-Norm blockMatrix 1-NormCompute 1-norm of matrix
Matrix Concatenate blockMatrix ConcatenateConcatenate input matrices of same data type for iterative processing
Matrix Exponential blockMatrix ExponentialCompute matrix exponential
Product blockMatrix MultiplyMultiply and divide scalars and nonscalars or multiply and invert matrices
Matrix Product blockMatrix ProductMultiply matrix elements along rows, columns, or entire input
Sum blockMatrix SumAdd or subtract inputs
Overwrite Values blockOverwrite ValuesOverwrite submatrix or subdiagonal of input
Reciprocal Condition blockReciprocal ConditionCompute reciprocal condition of square matrix in 1-norm
Toeplitz blockToeplitzGenerate matrix with Toeplitz symmetry
Least Squares Polynomial Fit blockLeast Squares Polynomial FitCompute polynomial coefficients that best fit input data in least-squares sense
Polynomial Evaluation blockPolynomial EvaluationEvaluate polynomial expression
Polynomial Stability Test blockPolynomial Stability TestUse Schur-Cohn algorithm to determine whether all roots of input polynomial are inside unit circle

Topics