MATLAB Answers

Indexing arrays to a new array

2 views (last 30 days)
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

  0 Comments

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 17 Apr 2019
Use basic indexing:
Array1(4:8)

  1 Comment

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

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by