I=imread('mandrill.bmp','bmp');
I=imresize(I(:,:,2),[100 100],'bicubic');

imagesc(myconv(I,fspecial('gaussian',[11 11],11/6)))
colormap(gray)

imagesc(myconv2(I,fspecial('gaussian',[11 11],11/6)))
colormap(gray)

imagesc(myconv3(I,fspecial('gaussian',[11 11],11/6)))
colormap(gray)

imagesc(myconv3(I,fspecial('gaussian',[20 20],20/6)))
colormap(gray)


test=rand(5,5);
myconv(test,fspecial('gaussian',[3 3],3/6))
myconv2(test,fspecial('gaussian',[3 3],3/6))
myconv3(test,fspecial('gaussian',[3 3],3/6))
myconv3(test,fspecial('gaussian',[4 4],4/6))