|
"praneeth " <praneeth87@gmail.com> wrote in message <ibuaif$oio$1@fred.mathworks.com>...
> I am using this program
>
> I = imread('eight.tif');
> J = imnoise(I,'salt & pepper',0.02);
> K = medfilt2(J);
> imshow(J), figure, imshow(K)
>
> but Iam getting the following error
> ??? Attempt to execute SCRIPT medfilt2 as a function:
> C:\Users\praneeth\Documents\MATLAB\medfilt2.m
You overwrote the IPT stock function MEDFILT2 with your own function at that location. Change it's name to something else. (This is assuming you have the Image Processing Toolbox)
If you don't have the IPT then
doc function
to explain how to write a function
|