How to get the vector in a matrix (specific location)

조회 수: 3 (최근 30일)
fyza affandi
fyza affandi 2018년 11월 17일
댓글: madhan ravi 2018년 11월 17일
I have matrix A (8x4)
A= [ 1 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0
4 5 6 7 8 9 10 11]
How can I get vector of B that start from row 4, column 2 till end?
B= [ 5 6 7 8 9 10 11]

채택된 답변

madhan ravi
madhan ravi 2018년 11월 17일
편집: madhan ravi 2018년 11월 17일
A= [ 1 0 0 0 0 0 0 0
2 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0
4 5 6 7 8 9 10 11]
B = A(4,2:size(A,2))
  댓글 수: 4
fyza affandi
fyza affandi 2018년 11월 17일
Thank you a lot!
madhan ravi
madhan ravi 2018년 11월 17일
Anytime :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by