Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to import a Matlab mat-file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85892] Re: How to import a Matlab mat-file
  • From: mcmcclur at unca.edu
  • Date: Wed, 27 Feb 2008 04:21:32 -0500 (EST)
  • References: <fq0ucs$kbg$1@smc.vnet.net>

On Feb 26, 6:49 am, "Kevin J. McCann" wrote:
> I have some data that I received from a colleague that
> is a rather large  mat file. "Data.mat". The file was
> generated with Matlab 2007b.

Mathematica 6.0.1 cannot import version 7 .mat files.
Ideally, your colleague should export the files
using the following syntax:
>> save -v6 Data.mat;

If that is not an option, you can download Octave, an
open source Matlab clone, from http://www.octave.org/.
You can then read the .mat file into Octave and save
it in the correct format via:
>> load Data.mat;
>> save -v6 Data2.mat;

Mark


  • Prev by Date: Re: PowerExpand in version 6
  • Next by Date: Text does not scale with size of graphic
  • Previous by thread: Re: How to import a Matlab mat-file
  • Next by thread: Re: How to import a Matlab mat-file