Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

explain the working of this code ??

1 Ansicht (letzte 30 Tage)
Pratik Mohite
Pratik Mohite am 22 Apr. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

Alex Mcaulley
Alex Mcaulley am 22 Apr. 2019
It is an inefficient way to count the number of 1's in matrix I

Diese Frage ist geschlossen.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by