Date: Dec 30, 2012 1:41 AM
Author: Bruno Luong
Subject: Re: GUI
Debora <email@example.com> wrote in message <firstname.lastname@example.org>...
> [q w]=size(AV);
> for i=1:w
> figure (1);
> hold on
> but this way I open a window with the graphic, and I want it on the interface. how should I do?
If you want to plot on the GUI, you need to create an AXE which has the GUI figure as Parents (usually it names handles.figure1 inside the callback), then use the handle of the AXE to plot. Do not create a new figure with figure(1) command. If you use GUIDE, you have the axe button on the left panel to add an axe.
ax = subplot(2,1,1, 'Parent', handles.figure1)