Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

explain the working of this code ??

1 visualización (últimos 30 días)
Pratik Mohite
Pratik Mohite el 22 de Abr. de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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

Respuestas (1)

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

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by