Re: How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}
- To: mathgroup at smc.vnet.net
- Subject: [mg63769] Re: How to create {{x1,y1}, ..., {xn,yn}} data from {x1,...,xn} and {y1, ..., yn}
- From: albert <awnl at arcor.de>
- Date: Sat, 14 Jan 2006 02:32:11 -0500 (EST)
- References: <dq7ual$3sk$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi, > 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}. l1={x1, x2, x3}; l2={y1, y2, y3}; Transpose[{l1,l2}] > I also would like to know if a user-defined function in Mathematica can > have more than one statements in its body. yes. just seperate them with ';' . You might also want to look for CompoundExpression in the Helpbrowser... hth albert