Re: How can I Flatten from the inside out, not the outside in?
- To: mathgroup at smc.vnet.net
- Subject: [mg5464] Re: [mg5393] How can I Flatten from the inside out, not the outside in?
- From: Sherman Reed <Sherman.Reed at worldnet.att.net>
- Date: Sat, 7 Dec 1996 00:26:44 -0500
- Sender: owner-wri-mathgroup at wolfram.com
At 07:50 PM 12/5/96 +0000, you wrote: >Here is the first of 699 elements of a list I want to >Flatten: > >{{{6.063,-36.544}},{{6.063,-35.404}},{{8.403,-36.544}},{{8.403,-35.404}}} > >How do I remove the "{{" and "}}" characters? > >Jason > > > Jason, my example was wrong, here is the corrected copy: {name}={Table[{10*Random[],10*Random[]},{5}]} {{{7.46953, 8.71183}, {3.99188, 4.64641}, {0.724589, 9.69797}, {9.12416, 0.452323}, {1.74913, 1.73868}}} Flatten[name] {7.46953, 8.71183, 3.99188, 4.64641, 0.724589, 9.69797, 9.12416, 0.452323, 1.74913, 1.73868} some=Partition[Flatten[name],2] {{7.46953, 8.71183}, {3.99188, 4.64641}, {0.724589, 9.69797}, {9.12416, 0.452323}, {1.74913, 1.73868}} sorry about the confusion sherman reed