|
In article
<e105d8cc-849a-4506-a28f-a34723dc9177@j10g2000vbe.googlegroups.com>,
Rune Allnor <allnor@tele.ntnu.no> wrote:
> On 6 Des, 00:48, "David Epstein"
> <David.Epstein.s...@remove.warwick.ac.uk> wrote:
> > I have a Matlab-created .fig file that displays a surface in 3D. You can
> > suppose that it's created by a specific Matlab function, such as "surf",
> > though I hope you don't have to know this.
> >
> > Is it possible to extract the numerical data from this .fig file. In
> > particular, if the .fig file is using a collection of N (x,y,z) points, how
> > can I obtain from the figure a 3xN matrix of doubles?
> >
> > I suppose it would be possible to obtain the data using Unix tools, but
> > this might not be a pleasant job. Really I would like to see (or construct
> > myself) a Matlab program doing this. Can I arrange to treat the .fig file
> > as a .mat file somehow, then "load" it? What would the variable names be in
> > that case?
> >
> > thanks for any help
> > David
>
> Can't be done.
>
> Rune
A .fig file is just a .mat file with a different suffix. You can load
it with
load('-mat','my.fig')
then poke around the structure that is stored and you will find the X, Y
and Z points you want.
--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.
|