i=imread('Ehsan-Shahnazi.jpg');
i2=rgb2gray(i);
i3=imadjust(i2);

q = fspecial('disk',10);
blurred = imfilter(i3,q,'replicate');

q2 = fspecial('motion',20,45);
MotionBlur = imfilter(i3,q2,'replicate');

figure;
subplot(1,2,1);
imshow(blurred);
title('blurred fspecial');

subplot(1,2,2);
imshow(MotionBlur);
title('MotionBlur fspecial');