フィルターのクリア

select certain matrix elements

1 回表示 (過去 30 日間)
zilai si
zilai si 2019 年 10 月 15 日
編集済み: Fabio Freschi 2019 年 10 月 15 日
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 日
You can simply concatenate your ranges using square brackets:
A([1:10 20:30],1)

その他の回答 (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