Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1634
| From | Peter <petsie@dordos.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: concatenate matrices? |
| Date | 2011-04-12 09:58 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <io17np$ic0$1@smc.vnet.net> (permalink) |
| 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
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
concatenate matrices? hadi motamedi <motamedi24@gmail.com> - 2011-04-11 11:08 +0000 Re: concatenate matrices? "Nasser M. Abbasi" <nma@12000.org> - 2011-04-12 09:56 +0000 Re: concatenate matrices? David Bailey <dave@removedbailey.co.uk> - 2011-04-12 09:57 +0000 Re: concatenate matrices? Peter <petsie@dordos.net> - 2011-04-12 09:58 +0000
csiph-web