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


Groups > comp.soft-sys.math.mathematica > #9500

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

From "Nasser M. Abbasi" <nma@12000.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to Invert Rows and Columns for a Grid of List of Lists
Date 2012-04-07 09:59 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jlp35b$15a$1@smc.vnet.net> (permalink)
References <jlmf9m$mhp$1@smc.vnet.net>

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web