MathGroup Archive 2004

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

Search the Archive

Re: Combining vectors to form a matrix


Three vectors 4 x 1:
In[8]:=
a1 = {1, 2, 3, 4}; 
a2 = {4, 5, 6, 7}; 
a3 = {7, 8, 9, 0}; 

A matrix 4 x 3 formed with the three vectors:

In[15]:=
mat = Transpose[{a1, a2, a3}]

Out[15]=
{{1, 4, 7}, {2, 5, 8}, {3, 6, 9}, {4, 7, 0}}

Take a look at

MatrixForm[mat]

Tomas Garza
Mexico City
----- Original Message ----- 
From: "Gregory Lypny" <gregory.lypny at videotron.ca>
To: mathgroup at smc.vnet.net
Subject: [mg49565] [mg49506] Combining vectors to form a matrix


> Hello everyone,
> 
> Marvellously powerful programme, but I'm feeling dumber by the minute.  
> Is there a simple way to combine three vectors of equal length, n, into 
> a nx3 matrix?
> 
> Greg
> 
> 


  • Prev by Date: Re: numerical solution of an ODE doesn't make sense
  • Next by Date: Re: numerical solution of an ODE doesn't make sense
  • Previous by thread: Re: Combining vectors to form a matrix
  • Next by thread: Re: Combining vectors to form a matrix