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