hello. how to make sum of same elements in binary matrix by using "for"? code that a made makes only sum of true elements. i want to make sum of all elements…
if true function SumE = compare( BW1 , BW2 )for a=1:110 for b=1:110 if (BW1(a,b)==BW2(a,b)) SumE=SumE+1; end endendendend
Best Answer