From: Corey Kelly on
I'm trying to create a slider to manually adjust the DisplayRange property of an image. I've displayed the image using imshow(), and stored the handle to handles.currimage, and I'm trying to use

set(handles.currimage,'DisplayRange',[0 handles.maxint])

but MATLAB is telling me that DisplayRange isn't a property of 'image'.

I know that imshow() can accept DisplayRange as a property on creation, but why can't it be changed later?
From: Walter Roberson on
Corey Kelly wrote:
> I'm trying to create a slider to manually adjust the DisplayRange
> property of an image. I've displayed the image using imshow(), and
> stored the handle to handles.currimage, and I'm trying to use
>
> set(handles.currimage,'DisplayRange',[0 handles.maxint])
>
> but MATLAB is telling me that DisplayRange isn't a property of 'image'.
>
> I know that imshow() can accept DisplayRange as a property on creation,
> but why can't it be changed later?

See the caxis command and the Axes CLim and CLimMode properties.