Hello
I am writing an assignment where we got a task to analyse some data. Here i wanna analyse a specifik segment of a given array i got. I am therefore woondering if it is possible to make a new array that contain, lets say from collum 4 to coullum 8 of the given array i allready got.
Example
Array1:
123
232
354
475
523
665
766
898
986
109
And then i want a little program or a command that can give me an array 2:
475
523
665
766
898
Kind Regards Mads

 채택된 답변

madhan ravi
madhan ravi 2019년 4월 17일

0 개 추천

Use basic indexing:
Array1(4:8)

댓글 수: 1

mads Sørensen
mads Sørensen 2019년 4월 17일
Ofc, thanks for the help, seems like i should wake up, cause that is so simple.

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

추가 답변 (0개)

카테고리

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

질문:

2019년 4월 17일

댓글:

2019년 4월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by