Hii,
For 'highpass' function the parameters to be passed should be normalised so highpass(0,0.5) won't be producing an error
Refer to link:
you can also refer to the below link for additional information on applying highpass filter to an image
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!