MathGroup Archive 2004

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

Search the Archive

Re: Combining vectors to form a matrix


x=Array[a,{4}]
y=Array[b,{4}]
z=Array[c,{4}]
Transpose@{x,y,z}
Dimensions@%

{a[1],a[2],a[3],a[4]}

{b[1],b[2],b[3],b[4]}

{c[1],c[2],c[3],c[4]}

{{a[1],b[1],c[1]},{a[2],b[2],c[2]},{a[3],b[3],c[3]},{a[4],b[4],c[4]}}

{4,3}

Bobby

On Thu, 22 Jul 2004 02:45:38 -0400 (EDT), Gregory Lypny <gregory.lypny at videotron.ca> wrote:

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



-- 
DrBob at bigfoot.com
www.eclecticdreams.net


  • Prev by Date: Re: nonparametric or robust regression code
  • Next by Date: Re: Loading graphics package
  • Previous by thread: Combining vectors to form a matrix
  • Next by thread: Re: Combining vectors to form a matrix