comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: clever trick for reading .mat
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: clever trick for reading .mat [message #25625] Fri, 06 July 2001 13:25
Wendy Ermold is currently offline  Wendy Ermold
Messages: 2
Registered: July 2001
Junior Member
Infinite thanks!! That's great!

-Wendy

"Liam E. Gumley" wrote:

> Wendy Ermold wrote:
>> I would really love it if someone out there has an idl script for
>> reading matlab created .MAT files. I understand that matlab doesn't want
>> us to know how to do this, but I bet someone out there has managed it.
>> Your help would be greatly appreciated!
>
> A reader for Matlab Version 4 .mat files is available at
>
> ftp://ion.le.ac.uk/idl/
>
> Cheers,
> Liam.
> Practical IDL Programming
> http://www.gumley.com/
Re: clever trick for reading .mat [message #25627 is a reply to message #25625] Fri, 06 July 2001 12:27 Go to previous message
Steve Eddins is currently offline  Steve Eddins
Messages: 9
Registered: July 2001
Junior Member
Craig Markwardt <craigmnet@cow.physics.wisc.edu> writes:

> Wendy Ermold <wermold@apl.washington.edu> writes:
>> Hello!
>>
>> I would really love it if someone out there has an idl script for
>> reading matlab created .MAT files. I understand that matlab doesn't want
>> us to know how to do this, but I bet someone out there has managed it.
>> Your help would be greatly appreciated!
>
> I haven't heard of such a thing for IDL. I do have code which reads
> IDL SAVE files, but they are not the same thing.
>
> You might be better off asking the Octave mailing list, after first
> checking the list archives. Octave is very similar to Matlab.
>
> Also, the first thing I found on Google when searching for "matlab
> file format" was a document from Mathworks specifying the format.
> Some secret!

Yup! Here it is:

http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab /matfile_format.pdf

Both MATLAB 4 and MATLAB 5 MAT-formats are completely documented. Have fun.

--
Steve Eddins
The MathWorks, Inc.
eddins@mathworks.com
http://www.mathworks.com
Re: clever trick for reading .mat [message #25628 is a reply to message #25627] Fri, 06 July 2001 11:57 Go to previous message
Paul van Delst is currently offline  Paul van Delst
Messages: 364
Registered: March 1997
Senior Member
Craig Markwardt wrote:
>
> Wendy Ermold <wermold@apl.washington.edu> writes:
>> Hello!
>>
>> I would really love it if someone out there has an idl script for
>> reading matlab created .MAT files. I understand that matlab doesn't want
>> us to know how to do this, but I bet someone out there has managed it.
>> Your help would be greatly appreciated!
>
> I haven't heard of such a thing for IDL.

It does exist. I have an old copy of loat_mat_data.pro written by Nigel Wade, Space Plasma
Physics Group, Leicester University. He's a regular poster here so he'll see the message
once the sun rises in ol' blighty. :o)

paulv

--
Paul van Delst A little learning is a dangerous thing;
CIMSS @ NOAA/NCEP Drink deep, or taste not the Pierian spring;
Ph: (301)763-8000 x7274 There shallow draughts intoxicate the brain,
Fax:(301)763-8545 And drinking largely sobers us again.
Alexander Pope.
Re: clever trick for reading .mat [message #25629 is a reply to message #25628] Fri, 06 July 2001 11:48 Go to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Wendy Ermold wrote:
> I would really love it if someone out there has an idl script for
> reading matlab created .MAT files. I understand that matlab doesn't want
> us to know how to do this, but I bet someone out there has managed it.
> Your help would be greatly appreciated!

A reader for Matlab Version 4 .mat files is available at

ftp://ion.le.ac.uk/idl/

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
Re: clever trick for reading .mat [message #25630 is a reply to message #25629] Fri, 06 July 2001 11:36 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Wendy Ermold <wermold@apl.washington.edu> writes:
> Hello!
>
> I would really love it if someone out there has an idl script for
> reading matlab created .MAT files. I understand that matlab doesn't want
> us to know how to do this, but I bet someone out there has managed it.
> Your help would be greatly appreciated!

I haven't heard of such a thing for IDL. I do have code which reads
IDL SAVE files, but they are not the same thing.

You might be better off asking the Octave mailing list, after first
checking the list archives. Octave is very similar to Matlab.

Also, the first thing I found on Google when searching for "matlab
file format" was a document from Mathworks specifying the format.
Some secret! In a pinch you could write a program to do what you
need, especially if you only need a few data types.

Good luck,
Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: batch processing and executables from Windows
Next Topic: Re: how to pass array from dll into IDL?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 14:52:36 PDT 2025

Total time taken to generate the page: 0.00554 seconds