Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to extract this vector ?

2 vues (au cours des 30 derniers jours)
mimalo salina
mimalo salina le 12 Oct 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have this matrix:
A=[ 1 2 -4 6
9 7 5 9
8 -3 7 2
1 2 6 7]
i want to extract the vector [ 6 5 -3 1], can anyone help me ?

Réponses (1)

Guillaume
Guillaume le 12 Oct 2017
Assuming you mean the antidiagonal of the matrix:
diag(fliplr(A))

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by