Delete Rows with a specific condition
古いコメントを表示
I have a matrix and I want to delete all rows that have ZEROS from columns 3 to end. How do?
採用された回答
その他の回答 (1 件)
Andrei Bobrov
2013 年 10 月 2 日
編集済み: Andrei Bobrov
2013 年 10 月 2 日
out = x(all(x(:,3:end),2),:);
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!