Matlab Error using .* Matrix dimensions must agree : I'm new in matlab, trying to apply high pass butterworth filter on my data images. I'm having this trouble,  "Error using  .*  Matrix dimensions must agree."

**Here's my code:**

 function[]=Preprocessing()

I = imread('Photo0029.jpg');

imshow(I);

imDouble=im2double(I);

fftlogim=fft(log(imDouble+0.01));

f=butterhp(I,15,1);

c=fftlogim.*f;

h=real(ifft(c));

figure,ishow(h);

h1=exp(h);

ifftshow(h1);


**and here's the butterhp function:-**

function[out]=butterhp(im,d,n)

h=size(im,1);

w=size(im,2);

[x,y]=meshgrid(-floor(w/2):floor(w-1)/2,-floor(h/2):floor(h-1)/2);

out=1./(1.+(d./(x.^2+y.^2).^0.5).^(2*n));

end



**Can anyone help me with this issue? I'll be grateful, Thanks in advance**

