How to delect the zero values in table
古いコメントを表示

There is a table in matlab, I want to know how to delete the entire row with zero values?
Many thanks in advance.
採用された回答
その他の回答 (1 件)
Fangjun Jiang
2021 年 5 月 24 日
編集済み: Fangjun Jiang
2021 年 5 月 24 日
a=[1 2 3;0 0 0 ; 1 0 2];
index=all(a==0,2);
a(index,:)=[];
カテゴリ
ヘルプ センター および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!