| DSP Blockset | Search  Help Desk |
| Extract Diagonal | See Also |
Create a vector from the elements of a matrix diagonal.
Library
Matrix Functions, in Math FunctionsDescription
The Extract Diagonal block creates a vector from the diagonal of a matrix input. The diagonal elements of an M-by-N matrix input are used to populate the output vector, which has a length ofmin(M,N). The Number of columns in A parameter specifies the number of columns, N, in the input matrix. A setting of -1 indicates that the input is square.
Note
Dialog Box

-1 indicates that the input is square.See Also
Constant Diagonal Matrix