MathGroup Archive 2006

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

Search the Archive

Re: How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63820] Re: [mg63755] How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}
  • From: "Christopher Arthur" <pantagruel123 at aol.com>
  • Date: Sun, 15 Jan 2006 05:43:32 -0500 (EST)
  • References: <200601130948.EAA03554@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Young-Jin,

Use the Transpose[] command to regroup your data---for example

if X is n x 2 list, i.e., {{x1,...,xn},{y1,...,yn}},
then transpose[X] is 2 x n list...

Cheers,

Chris Arthur
----- Original Message ----- 
From: <youngjin.michael at gmail.com>
To: mathgroup at smc.vnet.net
Subject: [mg63820] [mg63755] How to create {{x1,y1}, ..., {xn,yn}} data from 
{x1,...,xn} and {y1, ..., yn}


> Hello,
>
> I would like to know how to create a table format data such as {{x1,
> y1}, {x2, y2}, ..., {xn, yn}} from
> {x1, x2, ..., xn} and {y1, y2, ..., yn}.
>
> I also would like to know if a user-defined function in Mathematica can
> have more than one statements in its body.
>
> Thanks in advance.
>
> Young-Jin
>
> 



  • Prev by Date: Re: removing dublicates in lists
  • Next by Date: Re: Differentiating sums
  • Previous by thread: Re: How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}
  • Next by thread: Re: How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}