Re: concatenate matrices?
- To: mathgroup at smc.vnet.net
- Subject: [mg118109] Re: concatenate matrices?
- From: Peter <petsie at dordos.net>
- Date: Tue, 12 Apr 2011 05:59:56 -0400 (EDT)
- References: <inunen$2g1$1@smc.vnet.net>
Am 11.04.2011 13:08, schrieb hadi motamedi:
> 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
>
use Transpose:
In[4]:= {y1,y2}=Partition[Range[0,9],5];
MatrixForm[result=Transpose[{y1,y2}]]
Out[5]//MatrixForm=
0 5
1 6
2 7
3 8
4 9