Create square diagonal matrix from diagonal elements
DSP系统工具箱/数学功能ons / Matrices and Linear Algebra / Matrix Operations
The Create Diagonal Matrix block populates the diagonal of theM-by-Mmatrix output with the elements contained in the length-Mvector input D. The elements off the diagonal are zero.
A = diag(D) % Equivalent MATLAB code
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|