MathGroup Archive 2008

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

Search the Archive

List re-arrangement question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87733] List re-arrangement question
  • From: Yaroslav Bulatov <yaroslavvb at gmail.com>
  • Date: Wed, 16 Apr 2008 05:04:53 -0400 (EDT)

I'm trying to do something like the following:
Transpose[{{{a1, a2, a3}, {a1}, {a1, a2, a3}}, {{b1, b2, b3}, {b1},
{b1, b2, b3}}}, {3, 1, 2}]

expecting to get:
{{{a1, b1}, {a2, b2}, {a3, b3}}, {{a1, b1}}, {{a1, b1}, {a2, b2}, {a3,
b3}}}

However, it looks like Transpose doesn't work with "ragged"
arrays...so what is the recommended Mathematica style to do the above
transformation?


  • Prev by Date: Re: EdgeRenderingFunction to produce edge labels in GraphPlot
  • Next by Date: Re: How to solve this simple equation?
  • Previous by thread: Re: Dynamic (more)
  • Next by thread: Re: List re-arrangement question