>> img=imread('cameraman.tif');
>> filter1=imnoise(img,'salt & pepper',0.05);
>> filter2=medfilt2(filter1,[3,3]);
>> figure; imshow(img);
>> figure: imshow(filter1);
>> figure: imshow(filter2);
//Subplot Images
>> subplot(1,3,1), imshow(img);
>> subplot(1,3,2), imshow(filter1);
>> subplot(1,3,3), imshow(filter2);