Main Content

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.

`dsp.HDLComplexToMagnitudeAngle` | Magnitude and phase angle of complex signal—optimized for HDL code generation |

**Variable-Size Signal Support DSP System Objects**

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