Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1996
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

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



  • Prev by Date: Problem with 2D Fourier-Transform
  • Next by Date: Re: Q:Nicer than: Function[x,MapAt[Im,x,2]]/@data
  • Previous by thread: Problem with 2D Fourier-Transform
  • Next by thread: Greek Letters subscript shortcut