Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*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 2006

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

Search the Archive

Re: List manipulation

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70194] Re: [mg70162] List manipulation
  • From: Adriano Pascoletti <pascolet at dimi.uniud.it>
  • Date: Sat, 7 Oct 2006 07:07:17 -0400 (EDT)
  • References: <200610060558.BAA15435@smc.vnet.net>

This works on any block matrix A:

Join @@ (MapThread[Join, A[[#1]]] & ) /@ Range[Length[A]]

Adriano Pascoletti

> Hello,
>
> I have something as following:
>
> a = Array[aa, {3, 3}];
> b = Array[bb, {3, 3}];
> c = Array[cc, {3, 3}];
> d = Array[dd, {3, 3}];
> A = {{a, b}, {c, d}} (* A consists of four blocks *)
> A // MatrixForm
>
> And I want a 6*6 matrix (a list of 6 lists) just as A looks like.
> For example, the first row should be
>
> aa[1,1],aa[1,2],aa[1,3],bb[1,1],bb[1,2],bb[1,3]
>
> etc....
>
> How to get it easily?
>
> Many thanks.
> Xun
>
>


  • Prev by Date: Re: List manipulation
  • Next by Date: RE: List manipulation
  • Previous by thread: List manipulation
  • Next by thread: Re: List manipulation