Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9485 > unrolled thread
| Started by | brtubb@pdmusic.org |
|---|---|
| First post | 2012-04-06 10:07 +0000 |
| Last post | 2012-04-07 09:59 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
How to Invert Rows and Columns for a Grid of List of Lists brtubb@pdmusic.org - 2012-04-06 10:07 +0000
Re: How to Invert Rows and Columns for a Grid of List of Lists "Nasser M. Abbasi" <nma@12000.org> - 2012-04-07 09:59 +0000
| From | brtubb@pdmusic.org |
|---|---|
| Date | 2012-04-06 10:07 +0000 |
| Subject | How to Invert Rows and Columns for a Grid of List of Lists |
| Message-ID | <jlmf9m$mhp$1@smc.vnet.net> |
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] | [next] | [standalone]
| From | "Nasser M. Abbasi" <nma@12000.org> |
|---|---|
| Date | 2012-04-07 09:59 +0000 |
| Message-ID | <jlp35b$15a$1@smc.vnet.net> |
| In reply to | #9485 |
On 4/6/2012 5:07 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
Transpose[]?
a = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
b = Transpose[a]
---> {{1, 4, 7}, {2, 5, 8}, {3, 6, 9}}
--Nasser
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web