Main Content

Extract Diagonal of Matrix

This example shows how to use the Extract Diagonal block.

Open the Simulink model.

The Extract Diagonal block returns the main diagonal of the input matrix. The main diagonal of the input matrix is [1,5,9].

Run the model to verify.

See Also

Blocks