Re: Combining vectors to form a matrix

• To: mathgroup at smc.vnet.net
• Subject: [mg49565] Re: [mg49506] Combining vectors to form a matrix
• From: Tomas Garza <tgarza01 at prodigy.net.mx>
• Date: Fri, 23 Jul 2004 06:00:32 -0400 (EDT)
• References: <200407220645.CAA21019@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

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