Specific column range from an array?

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 ExchangeMatrix 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