MathGroup Archive 1996

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

Search the Archive

Re: columns

  • To: mathgroup at smc.vnet.net
  • Subject: [mg2916] Re: [mg2908] columns
  • From: Richard Bowman <rbowman at bridgewater.edu>
  • Date: Thu, 11 Jan 1996 01:10:10 -0500

On Tue, 9 Jan 1996, Julius C Hedden wrote:

> I have a simple problem that I can't seem to find a solution to. I have a 
> datafile that consists of a matrix of 3 columns which I want to import 
> into Mathematica.  All I can find in Wolfram's book is the command 
> ReadList, which reads in the file starting with element 1 of column 1 and 
> moves to element 1 of column 2, and so on.  When RecordLists is set to 
> True, it will organize the file into a set of sublists which correspond 
> to the rows of the matrix.  I want sublists that correspond to the 
> columns.  Can anyone please tell me how to get a columnar organization?

After your data has been imported as you describe it via ReadList, then 
simply do a Transpose on the resulting list.
-------------------------------------------------------------------------
Dr. Richard L. Bowman
Dept. of Physics                         e-mail:  rbowman at bridgewater.edu
Bridgewater College                                  phone:  540-828-5441
Bridgewater, VA  22812                                 FAX:  540-828-5479
-------------------------------------------------------------------------


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


  • Prev by Date: Question: Applying a list of funcs to a list of expressions
  • Next by Date: Mathematica does not know where are my files. Help!!!
  • Previous by thread: Re: columns
  • Next by thread: Re: columns