explain the working of this code ??
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
explai workig of this code.
C=0;
[m,n] = size(I);
for p=1:m
for q=1:n
if(I(p,q)==1)
C=C+1;
end
end
end
Risposte (1)
Alex Mcaulley
il 22 Apr 2019
1 voto
It is an inefficient way to count the number of 1's in matrix I
Questa domanda è chiusa.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!