ReadList
- To: mathgroup at yoda.physics.unc.edu
- Subject: ReadList
- From: KOLEH at joyl.joensuu.fi
- 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 Finland 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}