Specific column range from an array?

조회 수: 84 (최근 30일)
ayat
ayat 2017년 4월 5일
댓글: Nom 2019년 10월 7일
This is probably very dumb question but I cant seem to find an answer for it. I have an array with two columns, how to I extract let`s say the second column, from the 5th row until the 10th?

채택된 답변

Alexandra Harkai
Alexandra Harkai 2017년 4월 5일
y = x(5:10, 2) % rows 5:10, column 2
  댓글 수: 1
Nom
Nom 2019년 10월 7일
Thank you so much for actually linking it in the documentation, found exactly what I needed!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by