for i=1:size(img,1) for j=1:size(img,2) if img(i,j)<=25 img(i,j)=255; end endendcan anyone please tell me about the replacement of this piece of code in just one line..? I know it can be replaced with one line, but i am not able to it correctly....
MATLAB: Replacement of for loop in matlab
for loop
Best Answer