Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

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

Search the Archive

Re: create a list with x,y,z coordinates

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81588] Re: [mg81554] create a list with x,y,z coordinates
  • From: "W. Craig Carter" <ccarter at mit.edu>
  • Date: Fri, 28 Sep 2007 02:16:29 -0400 (EDT)
  • References: <200709270151.VAA02309@smc.vnet.net>

> From: Claus <claus.haslauer at web.de>
> Subject: [mg81554] create a list with x,y,z coordinates
> zVals={13, 8, 15, 9, 15, 8, 11, 2, 18, 8, 5, 10, 11, 10, 9, 14, 6, 23,
>...12}
>
> Table[{i,j},{i,0.05,1,0.1},{j,0.05,1,0.1}]
>
> What is the best way in mathematica to "append" the z-values to the
> (x,y)values?
> I know that they are in order corresponding to the (x,y)values; that is
> 13 corresponds to (0.05,0.05) and 12 corresponds to (0.95,0.95).

Dear Claus,

"Best" is hard to quantify. But, this should work.
icount=1;
data = 
Table[{i,j,zVals[[icount++]]},{i,0.05,1,0.01},{j,0.05,1,0.1}]

WCC


  • Prev by Date: bug in sort?
  • Next by Date: Simplification with subscripted variables and anonymous functions
  • Previous by thread: create a list with x,y,z coordinates
  • Next by thread: Re: create a list with x,y,z coordinates