To use the filter :
1) Create an image in the variable img
2) call the function filter to create the filter of same size as that of image 'img'
In the filter code specify the value of d0 which is the cut off frequency.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.