Path: news.mathworks.com!not-for-mail
From: "Dan Haeg" <haegd@msoe.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: extracting data from .fig in 2007a - did the proceedure change?
Date: Tue, 23 Oct 2007 17:26:50 +0000 (UTC)
Organization: Milwaukee School of Engineering
Lines: 23
Message-ID: <fflasp$skn$1@fred.mathworks.com>
References: <ffl47g$q5v$1@fred.mathworks.com>
Reply-To: "Dan Haeg" <haegd@msoe.edu>
NNTP-Posting-Host: webapp-06-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1193160410 29335 172.30.248.36 (23 Oct 2007 17:26:50 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 23 Oct 2007 17:26:50 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 475291
Xref: news.mathworks.com comp.soft-sys.matlab:434281



"Chris " <cag44@removethispitt.edu> wrote in message
<ffl47g$q5v$1@fred.mathworks.com>...
> I'd like to extract the original data from several 
> scatterplot .fig files.  However, using load('filename','-
> mat') does not produce xdata and ydata files and the file 
> available here "getfigdata.m" also returns an error saying 
> it can't find "lh".  
> 
> Does anyone know where the data is actually stored in 
> a .fig file under 2007a?
> 
> For instance, www.gaiteri.net/intrinsic_stress.fig
> is one I just need to extract this very simple information 
> from.  Thanks!

This works:

s=hgload('inlet.fig')
h = findobj(s,'Type','line')
y=get(h,'ydata');
x=get(h,'xdata');