Path: news.mathworks.com!not-for-mail
From: "French Caro " <caro95470@nospam.free.fr>
Newsgroups: comp.soft-sys.matlab
Subject: Re:
Date: Tue, 13 May 2008 13:13:03 +0000 (UTC)
Organization: PSA
Lines: 33
Message-ID: <g0c44v$4d0$1@fred.mathworks.com>
References: <g0c0fa$5r1$1@fred.mathworks.com>
Reply-To: "French Caro " <caro95470@nospam.free.fr>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210684383 4512 172.30.248.37 (13 May 2008 13:13:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 May 2008 13:13:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 474056
Xref: news.mathworks.com comp.soft-sys.matlab:468132


"Luca Cerone" <cerone@to-see.it> wrote in message
<g0c0fa$5r1$1@fred.mathworks.com>...
> Hi,
> I think it's a stupid thing but I couldn't succeed in coping
> it with.
> 
> I have code like this:
> 
> fh=figure(....);
> ah1=axes('Parent',fh,....,'Position',[.1 .1 .4 .5]);
> plot(ah1,x1,y1);
> 
> ah2=axes('Parent',fh,....,'Position',[.5 .1 .4 .5]);
> plot(ah2,x2,y2);
> 
> Till here no problem,
> After doing some operations i want to delete these two plots
> and substitute them with an other one
> (something like ah3=axes('Parent',fh,....,'Position',[.1 .1
> .8 .5]);
> plot(ah3,x3,y3);)
> 
> Of course I can write over the two plot, but I would like to
> completely remove them (something like close(ah1),
close(ah2));
> 
> Is there a way to make this???
> Thank you very much in advance, best wishes -Luca-
> 
You should use delete function :
delete(ah1)

Caroline