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

Home » Public Forums » archive » IDL routine to read MATLAB MAT-files
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
IDL routine to read MATLAB MAT-files [message #75524] Tue, 22 March 2011 16:09 Go to next message
Gordon Farquharson is currently offline  Gordon Farquharson
Messages: 48
Registered: December 2010
Member
Hi All

I've written an IDL routine to read MATLAB MAT-files. I thought that
this routine may be useful to others on this list, so I've made the
code available at GitHub:

https://github.com/gordonfarquharson/idl-load-mat

The routine is by no means complete: for instance, there are several
variable types that it does not support. However, the code is written
in such a way that it should be easy to extend. Note that the routine
does not read the newer HDF5 format MAT-files (see the README file for
more information).

If you find problems with the code, please use the tools at GitHub to
let me know about it. I don't have a huge amount of time to work on
this routine, but I'll see what I can do. Also, if you do extend the
program to support a new type, it would be great if you could let me
know so that we can incorporate your improvements.

You can checkout a copy of the code using git, or f you are not git-
savvy, GitHub allows you to download the code as a compressed tar file
or as a ZIP file.

Gordon
Re: IDL routine to read MATLAB MAT-files [message #75606 is a reply to message #75524] Fri, 25 March 2011 16:03 Go to previous messageGo to next message
Gordon Farquharson is currently offline  Gordon Farquharson
Messages: 48
Registered: December 2010
Member
On Mar 24, 9:45 pm, Gordon Farquharson <gordonfarquhar...@gmail.com>
wrote:

> I'm now working on support for MAT-files written on big endian
> machines. I have an initial version working, but want to test it a
> little more before releasing it. As some stage, once I become more
> comfortable with git, I'll be able to make development releases
> available through GitHub, I'm still learning git at the moment.

My development branch is now available on GitHub. It contains a
version of the code that supports endian swapping. With this code, one
should be able to read big-endian MAT-files (written using a big-
endian machine) on a little-endian machine (tested), and visa versa (I
am not able to test reading little-endian MAT-files on a big endian
machine).

Gordon
Re: IDL routine to read MATLAB MAT-files [message #75902 is a reply to message #75524] Fri, 15 April 2011 11:52 Go to previous messageGo to next message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
>
>
> "Gordon Farquharson" wrote in message
> news:5abf58c3-4af0-4f05-b9da-4142ebba8d97@b13g2000prf.google groups.com...
>
> Hi All
>
> I've written an IDL routine to read MATLAB MAT-files. I thought that
> this routine may be useful to others on this list, so I've made the
> code available at GitHub:
>
> https://github.com/gordonfarquharson/idl-load-mat
>
> The routine is by no means complete: for instance, there are several
> variable types that it does not support. However, the code is written
> in such a way that it should be easy to extend. Note that the routine
> does not read the newer HDF5 format MAT-files (see the README file for
> more information).
>
> If you find problems with the code, please use the tools at GitHub to
> let me know about it. I don't have a huge amount of time to work on
> this routine, but I'll see what I can do. Also, if you do extend the
> program to support a new type, it would be great if you could let me
> know so that we can incorporate your improvements.
>
> You can checkout a copy of the code using git, or f you are not git-
> savvy, GitHub allows you to download the code as a compressed tar file
> or as a ZIP file.
>
> Gordon


Thanks Gordon,
I work with several Matlab folks, and this will probably turn out to be very
useful for me.

cheers,
bob
Re: IDL routine to read MATLAB MAT-files [message #92375 is a reply to message #75902] Fri, 04 December 2015 05:32 Go to previous messageGo to next message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
fyi, I have updated the load_mat routine to handle compressed mat files. the updated code is now included with my public IDL library here:

http://www.github.com/superchromix/wmb_lib
Re: IDL routine to read MATLAB MAT-files [message #92469 is a reply to message #92375] Wed, 23 December 2015 02:49 Go to previous message
alghafisuct is currently offline  alghafisuct
Messages: 20
Registered: November 2014
Junior Member
On Friday, December 4, 2015 at 5:32:21 AM UTC-8, superchromix wrote:
> fyi, I have updated the load_mat routine to handle compressed mat files. the updated code is now included with my public IDL library here:
>
> http://www.github.com/superchromix/wmb_lib

So if I have .mat file I can convert it to IDL and get it work? Is that what you mean? I have .mat file and I want to use IDL and I'm not good in IDL just learning and I'm using Matlab

Thanks
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Address Sanitizer Error: Heap-buffer-overflow
Next Topic: tiff_coordinates

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

Current Time: Wed Oct 08 07:14:13 PDT 2025

Total time taken to generate the page: 0.00656 seconds