How do I count the numbers of 0s and display the results?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Walter Roberson
il 2 Nov 2012
numel(your_mat) - nnz(your_mat)
Categorie
Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!