MathGroup Archive 1998

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

Search the Archive

Re: combine two vectors to form matrix



Couldn't you do this:

vec1 = {a,b,c};
vec2 = {d,e,f};
mat = Table[ {vec1[[s]],vec2[[s]]},{s,1,Length[vec1]}];

Then, mat in MatrixForm is the following: a d
b e
c f

Chris Farr

Table
-----Original Message-----
From: s2700114@nickel.laurentian.ca <s2700114@nickel.laurentian.ca> To:
mathgroup@smc.vnet.net
Subject: [mg11279] [mg11222] combine two vectors to form matrix


>could any one tell me how to combine two lists(column vectors) into an n
>x 2 matrix?
>
>Troy
>
>




  • Prev by Date: Re: Question about Mathematica
  • Next by Date: Re: How draw 3D Arrows?
  • Prev by thread: Re: combine two vectors to form matrix
  • Next by thread: Re: combine two vectors to form matrix