Extract Diagonal
Extracting the main diagonal from the input matrix.
blockType: ExtractDiagonal
Path in the library:
|
Description
Block Extract Diagonal fills the output vector with elements of the main diagonal of the input matrix size on .
Ports
Input
#
A
—
Input signal
scalar | vector | the matrix
Details
The input matrix from which you want to extract the diagonal; scalar, vector or matrix.
| Data types |
|
| Complex numbers support |
I don’t |
Output
#
D
—
a vector of diagonal elements
vector
Details
The output vector consists of the diagonal elements of the input matrix.
The output vector has length .
| Data types |
|
| Complex numbers support |
I don’t |