MathGroup Archive 2008

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88774] Re: [mg88732] Re: export mathematica table to .mat (MATLAB) format.Please help!!!
  • From: "W_Craig Carter" <ccarter at mit.edu>
  • Date: Fri, 16 May 2008 05:32:05 -0400 (EDT)
  • References: <200805151050.GAA21727@smc.vnet.net>

Hello Alex,
I don't know anything about the file structure for MTLB, but your data
is not a rectangular matrix.

This works how I would expect it to work:

mydata = {{{0.272409}}, {{0.132711 + 0.231672 \[ImaginaryI],
    0.221351, -0.130221 + 0.226132 \[ImaginaryI]}}}

Export["mydata1.dat", TableForm[ mydata]]
Export["mydata2.dat", mydata,"CSV"]
Export["mydata.mat", mydata] (*fails, mat is not a known format*)
Export["mydata.mat", mydata, "TABLE"] (*works*)


WCC

>
> {
>  {{0.272409}},
>  {{0.132711+ 0.231672 \[ImaginaryI],
>   0.221351, -0.130221 + 0.226132 \[ImaginaryI]}}
> }
> I then use MatrixForm[%]
> I then use Export["file.mat", Out[6]] and it fails.WHY???
>
> Thanks
>
> Alex
>
>



-- 
W. Craig Carter


  • Prev by Date: Re: Labeling points
  • Next by Date: Re: Labeling points
  • 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!!!