Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to extract this vector ?

2 次查看(过去 30 天)
mimalo salina
mimalo salina 2017-10-12
关闭: MATLAB Answer Bot 2021-8-20
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 ?

回答(1 个)

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

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by