MATLAB: How to refresh the image shown on gui, after a selection is made in the colormap popup menu by the user

colormapImage Processing Toolboxpetpop up menu

I am creating a gui with PET images and I have done a popup menu for the color look up table. Please help me on how to refresh the image after a choice is made from the pop up menu by the user. For example, When I choose 'bone' in the pop up menu from gui, the image should change to 'bone' color. But it doesn't as i have not refreshed the image yet and i need help with that syntax.

Best Answer

try calling
drawnow()
after having set the new color.
Related Question