Indexing arrays to a new array

2 ビュー (過去 30 日間)
mads Sørensen
mads Sørensen 2019 年 4 月 17 日
コメント済み: mads Sørensen 2019 年 4 月 17 日
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 日
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 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by