Thank you for exact answer.
Then if I want to make a threshold between 11.0% to 45.0% of intensities, how to express this adding to the code which you have provided me?
and if I make 3images with one this grayscale image can I merge these 3images with different color using matlab code? for example, 0<intense<11.0% in yellow, 11<intense<45.0% in green, and 45<intense<100% in red ?