[Date Index]
[Thread Index]
[Author Index]
Re: How to Invert Rows and Columns for a Grid of List of Lists
*To*: mathgroup at smc.vnet.net
*Subject*: [mg125920] Re: How to Invert Rows and Columns for a Grid of List of Lists
*From*: Bill Rowe <readnews at sbcglobal.net>
*Date*: Sat, 7 Apr 2012 05:55:58 -0400 (EDT)
*Delivered-to*: l-mathgroup@mail-archive0.wolfram.com
On 4/6/12 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
Use Transpose, that is
In[4]:= a = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}};
b = {{1, 4, 7}, {2, 5, 8}, {3, 6, 9}};
b == Transpose[a]
Out[6]= True
Prev by Date:
**Re: How to generate ``nice'' algebra output from command-line mathematica?**
Next by Date:
**Re: How to Invert Rows and Columns for a Grid of List of Lists**
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**
| |