Search All of the Math Forum:

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: [mg5393] How can I Flatten from the inside out, not the
Replies: 0

 Sherman Reed Posts: 112 Registered: 12/7/04
Re: [mg5393] How can I Flatten from the inside out, not the
Posted: Dec 6, 1996 11:46 PM

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}}