Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Plotting
Date: Mon, 8 Sep 2008 02:36:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <ga232h$hih$1@fred.mathworks.com>
References: <ga0kc5$t7g$1@fred.mathworks.com> <ga0s7e$p07$1@fred.mathworks.com> <ga1f6u$qef$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1220841362 18001 172.30.248.35 (8 Sep 2008 02:36:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 8 Sep 2008 02:36:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1477385
Xref: news.mathworks.com comp.soft-sys.matlab:489091



I think you will need a program to do that outside MATLAB.

As for the legend question, in case you haven't figured it out yet, here is the answer:

legend works like this:

legend([handle1,handle2,handle3],'text1','text2','text3')

So you will need to obtain the handles of the graphic objects you wish to include in the legend.

One way to do this is by using findobj, like this:

h1=findobj('marker','*')
h2=finobj('type','line','color','b')
etc...