フィルターのクリア

Removing rows from array using indices

62 ビュー (過去 30 日間)
Pelajar UM
Pelajar UM 2021 年 11 月 1 日
コメント済み: Star Strider 2021 年 11 月 1 日
I have a 2530x1 array named Rowidx containing the indices of rows that I want to remove from several other arrays that have different dimenions.
What's the best way of doing this in MATLAB?

採用された回答

Star Strider
Star Strider 2021 年 11 月 1 日
If ‘Rowidx’ is a logical array, that might not work as desired. If it is a numerical array, then if ‘A’ is any of the arrays —
A(Rowidx,:) = [];
would work.
.
  10 件のコメント
Pelajar UM
Pelajar UM 2021 年 11 月 1 日
Wonderful! Thanks a lot for your time. I really appreciate it.
Star Strider
Star Strider 2021 年 11 月 1 日
Thank you!
As always, my pleasure!
.

サインインしてコメントする。

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