% doubles the size of an image. % % % function y=twice_as_big(x); X=fft2(x); [M,N]=size(x); Y=zeros(2*M,2*N); Y(1:M,1:N)=X; y=ifft2(Y);