Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1992

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

Search the Archive


  • To: mathgroup at
  • Subject: ReadList
  • From: KOLEH at
  • Date: Thu, 30 Jul 1992 12:35 EET

To the mathgroup

I often read data matrices into Mathematica. For small matrices the next
two ways work well. But if I have a larger matrix tal.dat, the second 
method fails. When I compare t3 and t4, they look similar, but t4 is
no longer a matrix. Can anaone tell, what is the problem?

Osmo Kolemainen
Associate professor of statistics
University of Joensuu
Mathematica 2.0 for MS-DOS 386/7

Copyright 1988-91 Wolfram Research, Inc.

In[1]:= t1=ReadList["t.dat",Table[Number,{21}]];

In[2]:= Dimensions[t1]

Out[2]= {6, 21}

In[3]:= t2=ReadList["t.dat",Number,RecordLists->True];

In[4]:= t1==t2

Out[4]= True

In[5]:= t3=ReadList["tal.dat",Table[Number,{21}]];

In[6]:= Dimensions[t3]

Out[6]= {505, 21}

In[7]:= t4=ReadList["tal.dat",Number,RecordLists->True];

In[8]:= t3==t4

Out[8]= False

In[9]:= Dimensions[t4]

Out[9]= {488}

  • Prev by Date: Mathematica Installation Woes
  • Next by Date: Re: Re-indexing Mathematica
  • Previous by thread: Mathematica Installation Woes
  • Next by thread: simultaneous equations