Re: Re: Reading from a file.
- To: mathgroup at smc.vnet.net
- Subject: [mg56723] Re: [mg56710] Re: [mg56678] Reading from a file.
- From: Chris Chiasson <chris.chiasson at gmail.com>
- Date: Thu, 5 May 2005 06:01:08 -0400 (EDT)
- References: <200505040434.AAA06239@smc.vnet.net>
- Reply-to: Chris Chiasson <chris.chiasson at gmail.com>
- Sender: owner-wri-mathgroup at wolfram.com
The wiki page did't work for me; it said I must login. However, the notebook worked fine. On 5/4/05, Barthelet, Luc <lucb at ea.com> wrote: > > You will find the answer here: > http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName== > F > AQ_Import/Export > > and the notebook here: > http://www.mathematica-users.org/mediawiki/images/a/a6/FAQ_input_demo.nb > > > Luc > > -----Original Message----- > From: Namrata Khemka [mailto:namrata.khemka at gmail.com] To: mathgroup at smc.vnet.net > Subject: [mg56723] [mg56710] [mg56678] Reading from a file. > > Hi everyone, > > I have the following input file: > > %Object Name : left asis > 1 168 0.695873 6.544617 62.457849 > 82.505554 > 1 169 0.700040 8.332349 61.770844 > 82.268933 > 1 170 0.704207 9.848946 61.490948 > 82.065082 > > %Object Name : right asis > 2 168 0.695873 -6.179786 37.250156 > 86.780951 > 2 169 0.700040 -4.581314 36.861102 > 86.754218 > > %Object Name : right asis > 3 168 0.695873 -6.179786 37.250156 86.780951 > 3 169 0.695873 -6.179786 37.250156 86.780951 > > I want to read this file in the form of a matrix (real numbers), so > that the matrix has the > following (eliminate the %Object line while reading): > > 1 168 0.695873 6.544617 62.457849 > 82.505554 > 1 169 0.700040 8.332349 61.770844 > 82.268933 > 1 170 0.704207 9.848946 61.490948 > 82.065082 > 2 168 0.695873 -6.179786 37.250156 > 86.780951 > 2 169 0.700040 -4.581314 36.861102 > 86.754218 > 3 168 0.695873 -6.179786 37.250156 > 86.780951 > 3 169 0.695873 -6.179786 37.250156 > 86.780951 > > So the real numbers matrix is of size [7][6] > > I have tried quite a few things but nothing seems to be working. > > Thanks in advance for the help, > > Namrata > > -- Chris Chiasson http://chrischiasson.com/ 1 (810) 265-3161
- References:
- Re: Reading from a file.
- From: "Barthelet, Luc" <lucb@ea.com>
- Re: Reading from a file.