Groups | Search | Server Info | Login | Register
Groups > comp.soft-sys.math.mathematica > #16821
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!newspump.sol.net!post2.nntp.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail |
|---|---|
| From | Dana DeLouis <dana01@icloud.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Simple list question |
| Date | Thu, 17 Apr 2014 09:11:22 +0000 (UTC) |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <lio5rq$5ks$1@smc.vnet.net> (permalink) |
| Lines | 75 |
| Organization | Time-Warner Telecom |
| NNTP-Posting-Date | 17 Apr 2014 09:17:27 GMT |
| NNTP-Posting-Host | 0e19daf1.news.twtelecom.net |
| X-Trace | DXC=i60FXi_V=hjiUai=K\Eb@nC_A=>8kQj6m;[h;PUXBgbd\BjXfi;a<@iEFiONJ7[GofgH02lQAlXUd |
| X-Complaints-To | abuse@twtelecom.net |
| X-Received-Bytes | 1983 |
| X-Received-Body-CRC | 3041985061 |
| Xref | csiph.com comp.soft-sys.math.mathematica:16821 |
Show key headers only | View raw
> pcin = 2;
> coin = Table[{10 RandomReal[], 10 RandomReal[]}, {pcin}]
As a side note, one doesn?t need to use ?Table? when generating your data:
pcin=2;
coin = RandomReal[{0,10},{2,pcin}]
= = = = = = = = = =
HTH :>)
Dana DeLouis
= = = = = = = = = =
On Monday, April 14, 2014 5:28:27 AM UTC-4, Ste[hen Gray wrote:
> 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
Re: Simple list question=
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar
Re: Simple list question Dana DeLouis <dana01@icloud.com> - 2014-04-17 09:11 +0000
csiph-web