Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Simple list question
Replies: 5   Last Post: Apr 16, 2014 3:40 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steve Gray

Posts: 103
Registered: 7/6/07
Simple list question
Posted: Apr 14, 2014 5:28 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

pcin = 2;
pcex = 3; (*pcin and pcex can have various small values *)

coin = Table[{10 RandomReal[], 10 RandomReal[]}, {pcin}]
coex = Table[{3 RandomReal[], 3 RandomReal[]}, {pcex}]
cobo = Append[coin, coex]


gives, typically,

{{0.288346, 3.57763}, {1.7335, 8.69666}}
{{0.179831, 1.35324}, {0.927483, 0.931586}, {1.76338, 2.45073}}
{{0.288346, 3.57763}, {1.7335,
8.69666}, {{0.179831, 1.35324}, {0.927483, 0.931586}, {1.76338,
2.45073}}}

What I want is a series of x,y coordinates with no extra nesting:

{{0.288346, 3.57763}, {1.7335,
8.69666}, {0.179831, 1.35324}, {0.927483, 0.931586}, {1.76338,
2.45073}}

I'm embarrassed to admit that I can't find how to do this.

Please email me. Thank you.

stevebg@roadrunner.com




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.