classify a matrix according to a "flag" value
1 回表示 (過去 30 日間)
古いコメントを表示
Hello
I have a rather large matrix with 3 columns and several thousand rows (!) (1000000x3)
As example
c1 c2 c3
r1 10 -5 0
r2 20 -10 1
.. ... ... 0
rn 100 -1 0
I would like to set as my criterion the third column, if the number is 0 then collect all the information from the other two column and create a new matrix.
c1 c2 c3
r1 10 -5 0
r2 ... ... 0
rn 100 -1 0
any suggestions? thank you very much
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Classification についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!