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: [mg49536] Re: [mg49506] Combining vectors to form a matrix
  • From: DrBob <drbob at bigfoot.com>
  • Date: Fri, 23 Jul 2004 05:59:24 -0400 (EDT)
  • References: <200407220645.CAA21019@smc.vnet.net>
  • Reply-to: drbob at bigfoot.com
  • Sender: owner-wri-mathgroup at wolfram.com

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