DSP Blockset    
Extract Diagonal


Purpose

Extract the main diagonal of the input matrix.

Library

Math Functions / Matrices and Linear Algebra / Matrix Operations

Description

The Extract Diagonal block populates the 1-D output vector with the elements on the main diagonal of the M-by-N input matrix A.

The output vector has length min(M,N), and is always sample-based.

Dialog Box

Supported Data Types

To learn how to convert to the above data types in MATLAB and Simulink, see Supported Data Types and How to Convert to Them.

See Also

Constant Diagonal Matrix
DSP Blockset
Create Diagonal Matrix
DSP Blockset
Extract Triangular Matrix
DSP Blockset
diag
MATLAB

Also see Matrix Operations for a list of all the blocks in the Matrix Operations library.


  Event-Count Comparator Extract Triangular Matrix