%-- 4:27 PM 12/13/01 --% x=imread('pattern.png'); imshow(x) x=double(x); n1 = 10*randn(size(x)); n2 = 10*randn(size(x)); n3 = 10*randn(size(x)); n4 = 10*randn(size(x)); imshow(n1,[]) x1 = x + n1; x2 = x + n2; x3 = x + n3; x4 = x + n4; imshow(x1,[]) figure,imshow(x2,[]) figure,imshow(x3,[]) figure,imshow(x4,[]) for k=1:4,figure(k),pause(1),end for k=1:4,figure(k),pause(1),end y1 = x1; y2 = (x1+x2)/2; y3 = (x1+x2+x3)/3; y4 = (x1+x2+x3+x4)/4; delfigs imshow(y1,[]) figure,imshow(y2,[]) figure,imshow(y3,[]) figure,imshow(y4,[]) for m=1:5,for k=1:4,figure(k),pause(1),end,end delfigs tdemo exit