Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Empty spaces in imported data' topicStudent Support Forum > General > "Empty spaces in imported data"

Next Comment >Help | Reply To Topic
Author Comment/Response
Amin
09/04/12 3:09pm

Hi,

I have a n by m matrix in which each element contains a set like {a,b,c} created by a user defined function in Mathematica. So output is like:

data={{{a11,b11,c11},{a12,b12,c12},...},{a21,b21,c21},{a22,b22,c22},...}}}

after saving this data using:

Export["c:\\...\\data.dat",data]

I imported it next time using:

Import["c:\\...\\data.dat","Table"]

the imported data looks like:

{{{a11,,b11,,c11},{a12,,b12,,c12},...},{a21,,b21,,c21},{a22,,b22,,c22},...}...}}

it seems that Mathematica inserts some empty spaces between each two numbers,Why does this happen?How can I fix it?

Thanks,
Amin.


URL: ,

Subject (listing for 'Empty spaces in imported data')
Author Date Posted
Empty spaces in imported data Amin 09/04/12 3:09pm
Re: Empty spaces in imported data Amin 09/04/12 11:41pm
Re: Re: Empty spaces in imported data jf 09/05/12 11:39am
Re: Empty spaces in imported data Amin 09/05/12 12:21pm
Next Comment >Help | Reply To Topic