How do I count the numbers of 0s and display the results?
古いコメントを表示
Hi all,
How do I count the numbers of 0s in the results as shown below and display the results?
Thank you
Columns 1 through 12
0 0 0 0 0 0 0 0 0 0 0 0
Columns 13 through 20
0 0 0 0 0 0 0 0
採用された回答
その他の回答 (1 件)
Walter Roberson
2012 年 11 月 2 日
numel(your_mat) - nnz(your_mat)
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!