From: vivek vk on
i am a newbie to matlab
can any one tell how to replace the grayscale values in a single command?

actually i have to use a log function on my image...
i declared the image as double..
but its showing a warning that log 0 is not defined.
so i want to change all the zeros to small value like 1/1024
pls help me

looking forward to replies.
thanks in advance