How to select a figure and do imagesc() on it in GUIDE?

3 views (last 30 days)
I have a gui, with many figures. I want to do imagesc(), but draw it on the graph i want (graph2). however, it automatically selects the active one, which is graph1. I've read on gcf, set properties , but it seems to be way more complicated than it should. I just want something to do this: ( I know this doesnt exist!)
imagesc(handles.graph2, DATA)
Thanks alot!!!!1

Accepted Answer

Image Analyst
Image Analyst on 22 May 2014
axes(handles.graph2); % Switch current axes to graph2
imagesc(DATA);

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!