a = imread('a.jpg'); imshow(a); [m,n] = size(a); for i = 1:m for j = 1:n result(i,j) = 0; end end figure,imshow(result);