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

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

axes(handles.graph2); % Switch current axes to graph2
imagesc(DATA);

More Answers (0)

Asked:

g
g
on 22 May 2014

Answered:

on 22 May 2014

Community Treasure Hunt

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

Start Hunting!