MathGroup Archive 2008

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

Search the Archive

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


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!!!