hello,everyone
i just want to ask how to select eg the 1-10 and 20-30 rows elements in the first column.
like A(1:10 and 20:30,1)

 採用された回答

Fabio Freschi
Fabio Freschi 2019 年 10 月 15 日
編集済み: Fabio Freschi 2019 年 10 月 15 日

0 投票

You can simply concatenate your ranges using square brackets:
A([1:10 20:30],1)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

タグ

質問済み:

2019 年 10 月 15 日

編集済み:

2019 年 10 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by