フィルターのクリア

How to extract certain rows of a matrix?

2 ビュー (過去 30 日間)
Mnr
Mnr 2014 年 3 月 26 日
コメント済み: Mnr 2014 年 3 月 26 日
Hello all,
I have a matrix having large dimension (165475 X 2). Some of its rows have a coordinate of (0,0). I would like to extract those rows. In other words, I would like each row of my matrix be treated as a vector and I am interested in the index of those rows. Thanks.

採用された回答

Mischa Kim
Mischa Kim 2014 年 3 月 26 日
Mnr, you could use
rows = find(all(data==0,2))
  1 件のコメント
Mnr
Mnr 2014 年 3 月 26 日
Thank you so much Mischa!

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

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