Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: grouping plot handles?
Date: Wed, 9 Apr 2008 14:48:03 +0000 (UTC)
Organization: Timothy S. Farajian, Inc.
Lines: 33
Message-ID: <ftikv3$h37$1@fred.mathworks.com>
References: <ftiik2$7ni$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1207752483 17511 172.30.248.38 (9 Apr 2008 14:48:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 9 Apr 2008 14:48:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1272923
Xref: news.mathworks.com comp.soft-sys.matlab:461991



"David Doria" <daviddoria@gmail.com> wrote in message 
<ftiik2$7ni$1@fred.mathworks.com>...
> I would like to do this
> %group 1
> a=plot(0,1,'o');
> b=plot(1,1,'ro');
> 
> %group 2
> c=plot(1,2,'go');
> 
> delete(group 1)
> 
> how would I do that?
> 
> Thanks
> 
> Dave

Try this:

 %group 1
group{1}(1) = plot(0,1,'o');
group{1}(2) = plot(1,1,'ro');
 
%group 2
group{2}(1) = plot(1,2,'go');
 
delete(group{1})

You could used "group1" and "group2" in place of "group{1}" 
and "group{2}".  However, I placed each group into a 
different cell of a cell array so it will be easy for you 
to create (for example) group{142} if you need to.