Re: Combining Vectors to Form a Matrix
- To: mathgroup at smc.vnet.net
- Subject: [mg46661] Re: [mg46656] Combining Vectors to Form a Matrix
- From: Tomas Garza <tgarza01 at prodigy.net.mx>
- Date: Fri, 27 Feb 2004 02:57:56 -0500 (EST)
- References: <200402262254.RAA24284@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
In[1]:=
vec1 = {1, 3, 6, 4};
vec2 = {2, 5, 7, 2};
In[2]:=
Transpose[{vec1, vec2}]
Out[2]=
{{1, 2}, {3, 5}, {6, 7}, {4, 2}}
You may check the result with
In[3]:=
MatrixForm[Transpose[{vec1, vec2}]]
Tomas Garza
Mexico City
----- Original Message -----
From: "Gregory Lypny" <gregory.lypny at videotron.ca>
To: mathgroup at smc.vnet.net
Subject: [mg46661] [mg46656] Combining Vectors to Form a Matrix
> Hello Everyone,
>
> What Mathematica function do I use to combine two n x 1 vectors to get
> a n x 2 matrix?
>
> Greg
>
>
- References:
- Combining Vectors to Form a Matrix
- From: Gregory Lypny <gregory.lypny@videotron.ca>
- Combining Vectors to Form a Matrix