MathGroup Archive 1996

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

Search the Archive

Re: help! to input data...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg4263] Re: help! to input data...
  • From: wagner at motel6.cs.colorado.edu (Dave Wagner)
  • Date: Sun, 23 Jun 1996 03:10:01 -0400
  • Organization: University of Colorado, Boulder
  • Sender: owner-wri-mathgroup at wolfram.com

In article <4q08l3$fiu at dragonfly.wolfram.com>,
Jason Welter <welter at .ti.com> wrote:
>In article <4pit53$jk5 at dragonfly.wolfram.com>, tcdoe+ at pitt.edu 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
		dbwagner at princon.com
		http://www.princon.com/princon

==== [MESSAGE SEPARATOR] ====


  • Prev by Date: Groebner bases
  • Next by Date: Symbolic Sum or Sum???
  • Previous by thread: Re: help! to input data...
  • Next by thread: Re: help! to input data...