From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How can I plot multiple graphs on the same single plot using GUI?
Date: Tue, 18 Nov 2008 18:43:02 +0000 (UTC)
Organization: Lulea University of Technology
Lines: 27
Message-ID: <gfv2bm$58o$>
References: <gfrv91$cep$> <gfs0bb$quv$> <gfuptm$ihj$> <gfuvrk$4l4$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: 1227033782 5400 (18 Nov 2008 18:43:02 GMT)
NNTP-Posting-Date: Tue, 18 Nov 2008 18:43:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1595763
Xref: comp.soft-sys.matlab:501533

"Adam" <> wrote in message <gfuvrk$4l4$>...
> "Bernard Lee" <> wrote 
> > Your method solved my problem...but now i dont know how to update the legend of the graph.
> What do you want to update?  Just the names?
> legendString = {'one', 'two'};
> hL = legend(legendString);
> Now if you modify legendString you can update the legend
> legendString{1} = 'three';
> set(hL, 'String', legendString)
> Sorry if this doesn't answer your question (I didn't read everything because I would approach the problem differently)
> ~Adam

I accidentally posted a reply higher up in this thread... Didn't know that was possible. Anyway, I answered the legend question there as well.

Sorry about double postings...