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일

3 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2017년 4월 5일

댓글:

Nom
2019년 10월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by