explain the working of this code ??
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
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
0 件のコメント
回答 (1 件)
Alex Mcaulley
2019 年 4 月 22 日
1 投票
It is an inefficient way to count the number of 1's in matrix I
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!