MathGroup Archive 2013

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

Search the Archive

Creating an ordered list of pairs


How do I create an ordered list of pairs of the following structure:
{{x1,y1}, {x2,y2}, {x3,y3}, ...} ? I want x1, x2, and x3 to be increasing in constant-interval steps (e.g. 1,2,3) and similarly for the y's (e.g. 5,10,15). E.g. 
{{1,5}, {1,10}, {1,15}, {2, 5}, {2,10}, ...} etc.

I cannot figure out how to do this with Table or Array. Is there another function that will do this? 

Table does not create the correct nesting or structure.

Thanks!

-Tony



  • Prev by Date: Contour plots of lat/lon data
  • Next by Date: Creating a list of 1x2 element arrays without procedural programming
  • Previous by thread: Contour plots of lat/lon data
  • Next by thread: Re: Creating an ordered list of pairs