Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: export mathematica table to .mat (MATLAB) format.Please help!!!

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88770] Re: export mathematica table to .mat (MATLAB) format.Please help!!!
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Fri, 16 May 2008 05:31:19 -0400 (EDT)
  • Organization: University of Bergen
  • References: <g0h4k2$l9p$1@smc.vnet.net>

Alex wrote:
> Hi,
> 
> I am aware of this. I simply changed it to make the text more readable. This is because I copy pasted the values directly from the table in this box.
> 
> The first few entries is simply an example of the Table as I see it. I have also used the command MatrixForm[%].
> 
> Now when I try to export this it fails. HELP PLEASE!!!!!!!! 

You did not describe very precisely what you did ... so I had to guess. 
    A precisely formulated question is more likely to receive an answer 
than one in which you type in all caps ...

> 
> So a different sample of what I see follows:
> 
> {
>  {{0.272409}},
>  {{0.132711+ 0.231672 \[ImaginaryI], 
>    0.221351, -0.130221 + 0.226132 \[ImaginaryI]}}
> }

This is not a matrix at all.  A matrix should be a two-level list, with 
every sublist having the same length.  This is a three-level list, with 
sublists of different lengths.

While I am not very familiar with the MAT format, I believe that the 
problem is that it can only store matrices, but not ragged arrays.

> I then use MatrixForm[%]

MatrixForm is only for pretty printing.  Do not use it before export.

> I then use Export["file.mat", Out[6]] and it fails.WHY???

If you refer to Out[6] then you should say exactly what Out[6] is.

> 
> Thanks
> 
> Alex
> 


  • Prev by Date: remote Kernel
  • Next by Date: Traditional Ordering of Equations
  • Previous by thread: Re: export mathematica table to .mat (MATLAB) format.Please help!!!
  • Next by thread: Re: export mathematica table to .mat (MATLAB) format.Please help!!!