MathGroup Archive 2008

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

Search the Archive

Re: Convert Array to Simple List

  • To: mathgroup at smc.vnet.net
  • Subject: [mg86999] Re: [mg86940] Convert Array to Simple List
  • From: Syd Geraghty <sydgeraghty at mac.com>
  • Date: Fri, 28 Mar 2008 03:17:51 -0500 (EST)
  • References: <200803271315.IAA19529@smc.vnet.net>

Pierre,

In[8]:= Flatten[{{a, b}, {c, d}}]
Out[8]= {a, b, c, d}

In[10]:= Flatten[Transpose[{{a, b}, {c, d}}]]
Out[10]= {a, c, b, d}

HTH,

Syd



Syd Geraghty B.Sc, M.Sc.

sydgeraghty at mac.com

My System

Mathematica 6.0.1 for Mac OS X x86 (64 - bit) (June 19, 2007)
MacOS X V 10.5 .20
MacBook Pro 2.33 Ghz Intel Core 2 Duo  2GB RAM




On Mar 27, 2008, at 6:15 AM, Pierre wrote:

> I need to convert an Array (List of List) to a simple List by  
> concatening the colums or the lines.
>
> e.g. : {{a,b},{c,d}}  ==>{a,b,c,d}
> or
> {{a,b},{c,d}}  ==>{a,c,b,d}
>



  • Prev by Date: Re: Wrapping text to fit a rectangle
  • Next by Date: Problem with FourierParameters
  • Previous by thread: Re: Convert Array to Simple List
  • Next by thread: Re: Convert Array to Simple List