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