Path: news.mathworks.com!not-for-mail
From: "Luca Cerone" <cerone@to-see.it>
Newsgroups: comp.soft-sys.matlab
Subject: "Destroy" Axes
Date: Tue, 13 May 2008 12:10:18 +0000 (UTC)
Organization: To see srl
Lines: 26
Message-ID: <g0c0fa$5r1$1@fred.mathworks.com>
Reply-To: "Luca Cerone" <cerone@to-see.it>
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 1210680618 5985 172.30.248.37 (13 May 2008 12:10:18 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 May 2008 12:10:18 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1102946
Xref: news.mathworks.com comp.soft-sys.matlab:468122


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-