Documentation

# Array and Matrix Mathematics

Matrix multiplication, array operations, polynomial fitting

## Objects

 `dsp.ArrayVectorAdder` Add array to vector along specified dimension `dsp.ArrayVectorDivider` Divide array by vector along specified dimension `dsp.ArrayVectorMultiplier` Multiply array by vector along specified dimension `dsp.ArrayVectorSubtractor` Subtract vector from array along specified dimension `dsp.CumulativeProduct` Cumulative product of channel, column, or row elements `dsp.CumulativeSum` Cumulative sum of channel, column, or row elements `dsp.HDLComplexToMagnitudeAngle` Magnitude and phase angle of complex signal—optimized for HDL code generation

## Blocks

expand all

 Array-Vector Add Add vector to array along specified dimension Array-Vector Divide Divide array by vector along specified dimension Array-Vector Multiply Multiply array by vector along specified dimension Array-Vector Subtract Subtract vector from array along specified dimension Complex to Magnitude-Angle HDL Optimized Compute magnitude and/or phase angle of complex signal—optimized for HDL code generation using the CORDIC algorithm Cumulative Product Cumulative product of channel, column, or row elements Cumulative Sum Cumulative sum of channel, column, or row elements dB Conversion Convert magnitude data to decibels (dB or dBm) dB Gain Apply decibel gain Difference Compute element-to-element difference along specified dimension of input Normalization Perform vector normalization along rows, columns, or specified dimension
 Create Diagonal Matrix Create square diagonal matrix from diagonal elements Extract Diagonal Extract main diagonal of input matrix Extract Triangular Matrix Extract lower or upper triangle from input matrices Identity Matrix Generate matrix with ones on main diagonal and zeros elsewhere Matrix 1-Norm Compute 1-norm of matrix Matrix Concatenate Concatenate input signals of same data type to create contiguous output signal Matrix Exponential Compute matrix exponential Matrix Multiply Multiply and divide scalars and nonscalars or multiply and invert matrices Matrix Product Multiply matrix elements along rows, columns, or entire input Matrix Square Compute square of input matrix Matrix Sum Add or subtract inputs Overwrite Values Overwrite submatrix or subdiagonal of input Permute Matrix Reorder matrix rows or columns Reciprocal Condition Compute reciprocal condition of square matrix in 1-norm Submatrix Select subset of elements (submatrix) from matrix input Toeplitz Generate matrix with Toeplitz symmetry
 Least Squares Polynomial Fit Compute polynomial coefficients that best fit input data in least-squares sense Polynomial Evaluation Evaluate polynomial expression Polynomial Stability Test Use Schur-Cohn algorithm to determine whether all roots of input polynomial are inside unit circle

## Topics

Variable-Size Signal Support DSP System Objects

List of System objects which support variable-sized signals in DSP System Toolbox™.

Watch now