Re: reading .mat files in IDL [message #50634 is a reply to message #50505] |
Fri, 06 October 2006 06:41  |
btt
Messages: 345 Registered: December 2000
|
Senior Member |
|
|
Ulan wrote:
> Dear all,
>
> Recently I had to tranfer some time series plots from Matlab (.mat
> files) into IDL. I have used IDL's "Binary Import" macro and had a few
> problems. I thought, the problems were due to the data type
> miscommunication: when the double data type in Matlab was imported as
> double into IDL the data range was somewhat different (looked rather
> streched like in BYTSCL command). I have expieremented with other data
> types in Matlab (int8, int16, int32) but then IDL's binary template
> complaint of improper data sizes. Finally, I had to make 2D array of my
> time-series in Matlab, copy array cells into Notepad and save it as an
> ASCII. I guess it is not the proper way of transfering data and most
> likely I'll face the same problem when transfering larger 2D or 3D
> data... I searched the forum for the same topics but couldn't find an
> answer. Also a link on one site of 'reading .mat files into IDL' was
> broken. So, if anybody had expierence ...
>
Hi,
I don't have a solution for reading MAT files directly into IDL, but a
while back (a long while now) Nick Wolf and I cobbled together a set of
IDL and MatLab routines to exchange data via file I/O. Send me an email
if you would like it.
Cheers,
Ben
|
|
|