Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9512 > unrolled thread

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

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-04-08 08:16 +0000
Last post2012-04-08 08:16 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: How to Invert Rows and Columns for a Grid of List of Lists Bob Hanlon <hanlonr357@gmail.com> - 2012-04-08 08:16 +0000

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

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-04-08 08:16 +0000
SubjectRe: How to Invert Rows and Columns for a Grid of List of Lists
Message-ID<jlrhha$eo0$1@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@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.
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web