The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: help! to input data...
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Dave Wagner

Posts: 19
Registered: 12/7/04
Re: help! to input data...
Posted: Jun 18, 1996 3:04 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

In article <4q08l3$>,
Jason Welter <> wrote:
>In article <4pit53$>, says...
>>well, silly me.
>>I thought i was pretty good at the basics of mathematica, but today i
>>tried to input some numerical data that was comma delimited. i.e.

>You don't need to convert the commas to tabs.
>Solution #1: Open the file and put a "{" before the first number
>and a "}" after the last. This creats one big list and can be
>read in using something like data = <<"C:\\temp\\data.txt";

This won't quite work; for example, in

{1, 2, 3
4, 5, 6

Mathematica will interpret the newline character between the 3 and the 4
as multiplication, so whhen you Get this file you'll end up with:

{1, 2, 12, 5, 6}

Dave Wagner
Principia Consulting
(303) 786-8371

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.