Re: Creating a list of 1x2 element arrays without procedural

• To: mathgroup at smc.vnet.net
• Subject: [mg132090] Re: Creating a list of 1x2 element arrays without procedural
• From: Alexei Boulbitch <Alexei.Boulbitch at iee.lu>
• Date: Tue, 3 Dec 2013 05:23:55 -0500 (EST)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com
• Delivered-to: l-mathgroup@wolfram.com
• Delivered-to: mathgroup-outx@smc.vnet.net
• Delivered-to: mathgroup-newsendx@smc.vnet.net

```Is there a way in Mathematica using built-in functions to create what the following procedural program does?

latlong = {}
Do[AppendTo[latlong, {i, j}] , {i, 30.0, 45.0,
5.0}, {j, -270.0, -240.0, 10.0}];
latlong

Out:
{{30., -270.}, {30., -260.}, {30., -250.}, {30., -240.}, {35., \
-270.}, {35., -260.}, {35., -250.}, {35., -240.}, {40., -270.}, {40., \
-260.}, {40., -250.}, {40., -240.}, {45., -270.}, {45., -260.}, {45., \
-250.}, {45., -240.}}

Thanks!

-Tony

Hi, Tony,

It is:

latlong =
Flatten[Table[{i, j}, {i, 30.0, 45.0, 5.0}, {j, -270.0, -240.0,
10.0}], 1]

{{30., -270.}, {30., -260.}, {30., -250.}, {30., -240.}, {35., \
-270.}, {35., -260.}, {35., -250.}, {35., -240.}, {40., -270.}, {40., \
-260.}, {40., -250.}, {40., -240.}, {45., -270.}, {45., -260.}, {45., \
-250.}, {45., -240.}}

Have fun, Alexei

Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone :  +352-2454-2566
Office fax:       +352-2454-3566
mobile phone:  +49 151 52 40 66 44

e-mail: alexei.boulbitch at iee.lu

```

• Prev by Date: Re: Creating an ordered list of pairs
• Next by Date: Re: Creating an ordered list of pairs
• Previous by thread: Re: Cubic Bezier Curves Intersection
• Next by thread: Re: Creating a list of 1x2 element arrays without procedural