Re: AppendColumns
- To: mathgroup at smc.vnet.net
- Subject: [mg41708] Re: AppendColumns
- From: Bill Rowe <listuser at earthlink.net>
- Date: Mon, 2 Jun 2003 04:35:17 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 5/31/03 at 6:07 AM, gamote at ap.univie.ac.at (Gabriel Molina-Terriza) wrote: >I have tried to Append Rows to a matrix, with the AppendRows >instruction and is not working very well. The matrices are numerical, >but come from an evaluation. The instruction I use is >tt=AppendRows[Num,B[[Table[i,{i,1,2}]]]] and the result is something >like AppendRows{{1,2},{3,4}} >Any idea why? It looks like tried to feed AppendRows *vectors* when it expects *matrices* Look at the following and see if that makes things clearer In[2]:= a=Range[3]; b=Range[4,6]; AppendRows[a,b] Out[4]= AppendRows[{1,2,3},{4,5,6}] In[5]:= AppendRows[{a},{b}] Out[5]= {{1,2,3,4,5,6}} In[6]:= VectorQ/@{a,b} Out[6]= {True,True} In[7]:= MatrixQ/@{a,b} Out[7]= {False,False}