Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

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
> 
> 


  • Prev by Date: RE: fill the empty spaces in a matrix
  • Next by Date: Re: fill the empty spaces in a matrix
  • Previous by thread: Combining Vectors to Form a Matrix
  • Next by thread: Re: Combining Vectors to Form a Matrix