Mathematica 9 is now available
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: [mg5442] Re: How can I Flatten from the inside out, not the outside in?
  • From: hibbarda at central.edu (Al Hibbard)
  • Date: Sat, 7 Dec 1996 00:26:17 -0500
  • Organization: Central College, Iowa
  • Sender: owner-wri-mathgroup at wolfram.com

In article <57usmq$3cb at dragonfly.wolfram.com>, welter at texoma.com (Jason Welter) writes:
>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
>
>
If g =
{{{6.063,-36.544}},{{6.063,-35.404}},{{8.403,-36.544}},{{8.403,-35.404}}}
then Flatten[g] will remove ALL of the inner {{ and }} and so the pairs
will be lost. Presuming that you want to preserve the pairs, use
Flatten[g,1].

Al Hibbard



  • Prev by Date: losing unconvergent roots in FindRoot
  • Next by Date: Re: Cross product
  • Previous by thread: How can I Flatten from the inside out, not the outside in?
  • Next by thread: Re: How can I Flatten from the inside out, not the outside in?