Re: Import/Export Problem

• To: mathgroup at smc.vnet.net
• Subject: [mg90509] Re: Import/Export Problem
• From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
• Date: Fri, 11 Jul 2008 02:04:11 -0400 (EDT)
• Organization: The Open University, Milton Keynes, UK
• References: <g54qmp\$ga4\$1@smc.vnet.net>

```Kevin J. McCann wrote:

> I have computed a vector function {Bx,By,Bz} as a function of {x,y,z}.
> For example, here is the first element in the collection:
>
> {{-2.95,-1.99},{1.16284,-0.156402,0.702541}}
>
> I export it:
>
> Export["btbl2.dat", btbl2]
>
> (the variable is btbl2.)
>
> And then Import it as btbl3:
>
> btbl3=Import["btbl2.dat"];
>
> Here is what the first element, btbl3[[1]] looks like:
>
> {{-2.95,,-1.99},{1.1628413272120999,,-0.15640196465950917,,0.7025406185687192}}
>
> Note the double commas!
>
> Che pasa?
>
> Kevin
>

FWIW,

The above example works fine on my system (no double commas):

In[1]:= btbl2 = {{-2.95, -1.99}, {1.16284, -0.156402, 0.702541}}

Out[1]= {{-2.95, -1.99}, {1.16284, -0.156402, 0.702541}}

In[2]:= Export["btbl2.dat", btbl2]

Out[2]= "btbl2.dat"

In[3]:= btbl3 = Import["btbl2.dat"]

Out[3]= {{-2.95, -1.99}, {1.16284, -0.156402, 0.702541}}

In[4]:= \$Version

Out[4]= "6.0 for Mac OS X x86 (64-bit) (February 7, 2008)"

Regards,
-- Jean-Marc

```

• Prev by Date: Re: Difference between two commands.
• Next by Date: Re: Problem parsing date formats using Import
• Previous by thread: Import/Export Problem
• Next by thread: Re: Import/Export Problem