If I have :
for i=1:n
for j=1:m
if outputImg(i,j) < thresholdLow
outputImg(i,j) = 0;
elseif outputImg(i,j)> thresholdHigh
outputImg(i,j) = 1;
end
end
end
or even worse :
for i=1:n
for j=1:m
for k=1:q
% do something
end
end
end
How can I achieve this differently , without for ?