Re: concatenate matrices?
- To: mathgroup at smc.vnet.net
- Subject: [mg118085] Re: concatenate matrices?
- From: Sseziwa Mukasa <mukasa at gmail.com>
- Date: Tue, 12 Apr 2011 05:55:34 -0400 (EDT)
On Apr 11, 2011, at 7:08 AM, hadi motamedi wrote: > Dear All > I have two column matrices named y1 & y2 with dimensions as 448000*1 . > Can you please let me know how to construct a new matrix say 'y' with > dimensions 448000*2 such that each column of it equals y1(or y2)? > Thank you > Are y1 and y2 really matrices? Or vectors? Eg. is Length[Dimensions[y1]] 2 or 1? If it's 2 then y = Join[y1,y2,2] If it's 1 then y = Transpose[{y1,y2}] Regards, Ssezi