Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Beginner: Importing files, maintaining file format.

  • To: mathgroup at
  • Subject: [mg60637] Re: Beginner: Importing files, maintaining file format.
  • From: "Jens-Peer Kuska" <kuska at>
  • Date: Thu, 22 Sep 2005 05:42:25 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <dgtjms$2fs$>
  • Sender: owner-wri-mathgroup at


if your data are already in Mathematica format, 
the file is only
{ {{0,0,0},{0,0,1}},
you can use Get[]



"smotz555" <greenli7 at> schrieb im 
Newsbeitrag news:dgtjms$2fs$1 at
|I know there must be a simple solution to this...
| I have an array.dat file, that has an array in 
it that is already formatted and ready to plot. 
I'm going to be using the ListPlotVectorField, so 
array.dat is in the format {{point,vector},...}. I 
didn't see anything that let me take in 4 data 
points into that format, so I made the array.dat 
fit the ListPlotVectorField format within the 
program it is generated.
| Basically I want to get from that .dat file to 
being able to plot.
| I've tried using import, but the line and table 
format there won't hold the format of the file.
| So I tried Import["array.dat, "Text"], which 
would be optimal but resulted in the output being 
considered as text, being put in "s, and wouldn't 
plot until the " were removed. I don't really want 
to remove those by hand...
| Then I tried using !!array.dat, but I can't seem 
to label that output as anything.  I tried 
!!array.dat followed by varray = %, but when I 
plotted it said varray was null. I also tried a 
few other things similar to that.
| Any suggestions or a better method?
| Maybe there is another specification I can put 
in the Import function?
| Thanks,
| Lisa

  • Prev by Date: Re: Struggling with LaTeX output from Publicon
  • Next by Date: Re: Re: Bugs in Mathematica 5+ (and license policies)
  • Previous by thread: Re: Beginner: Importing files, maintaining file format.
  • Next by thread: Re: Beginner: Importing files, maintaining file format.