MathGroup Archive 2012

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

Search the Archive

Re: How to Invert Rows and Columns for a Grid of List of Lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125938] Re: How to Invert Rows and Columns for a Grid of List of Lists
  • From: Bob Hanlon <hanlonr357 at gmail.com>
  • Date: Sun, 8 Apr 2012 04:15:39 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201204061002.GAA23061@smc.vnet.net>

Previously, I didn't read the subject and didn't notice that all you
wanted to do is transpose the matrix.

a = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};

b = {{1, 4, 7}, {2, 5, 8}, {3, 6, 9}};

b == Transpose[a]

True

On Fri, Apr 6, 2012 at 6:02 AM,  <brtubb at pdmusic.org> wrote:
> Consider two lists
>
> a = {{1,2,3},{4,5,6},{7,8,9}};
> b = {{1,4,7},{2,5,8},{3,6,9}};
>
> I want to transform a "into" b for use in a project for displaying chord diagrams in a GraphicsGrid. the list values will be used to indicate ArrayPlot scale fingering "dots" for any given tuning. The Riffle function would seem to be the most likely candidate, other than a "brute force" user defined function to do a rules table.
>




  • Prev by Date: Re: How to generate ``nice'' algebra output from command-line mathematica?
  • Next by Date: Re: Stuck solving recurrence formula
  • Previous by thread: Re: How to Invert Rows and Columns for a Grid of List of Lists
  • Next by thread: Re: How to Invert Rows and Columns for a Grid of List of Lists