MathGroup Archive 2006

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

Search the Archive

dynamic variable definiton

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67242] dynamic variable definiton
  • From: "T.Sariyski" <tsariysk at craft-tech.com>
  • Date: Wed, 14 Jun 2006 06:28:55 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
I have a list of lists. The first element of each list is a description, 
the rest are numerical. Is it possible dynamic to create variable and to 
assign values to them? For example, I read data with ReadList:

rawdata=ReadList["myfile.txt",Word,WordSeparators->"",RecordListsï?¢True,RecordSeparatorsï?¢{"\n\n","\n","\n"}];

{{Face 1},{observ 0.1000E+02 0.3000E+01 0.4000E+01},{center 0.1050E+02 
0.3000E+01 0.4000E+01},{e1 0.1000E+01 0.0000E+00 0.0000E+00},{e2 
0.0000E+00 0.1000E+01 0.0000E+00},{e3 0.0000E+00 0.0000E+00 
0.1000E+01},{v1 0.1050E+02 0.3500E+01 0.4500E+01},{v2 0.1050E+02 
0.2500E+01 0.4500E+01},{v3 0.1050E+02 0.2500E+01 0.4000E+01},{v4 
0.1050E+02 0.3500E+01 0.4000E+01}}

I would like to have:

Face=1;
obsrv={0.1000E+02 , 0.3000E+01, 0.4000E+01};
center={0.1050E+02, 0.3000E+01, 0.4000E+01};
e1=... etc.

Thanks in advance, Ted



  • Prev by Date: Re: 3D plots
  • Next by Date: RE: 3D plots
  • Previous by thread: Re: a mahtematica newbie about FitResiduals question:
  • Next by thread: Re: dynamic variable definiton