Extract Diagonal
Extract main diagonal of input matrix
- Library:
Simulink / Matrix Operations
Description
The Extract Diagonal block populates the unoriented output vector with the elements on
the main diagonal of the M-by-N input matrix
A
. Equivalent MATLAB® code is given by:
D = diag(A)
Ports
Input
Output
Model Examples
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|