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