Re: Matrix Problem
- To: mathgroup at smc.vnet.net
- Subject: [mg51682] Re: [mg51641] Matrix Problem
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Fri, 29 Oct 2004 03:39:01 -0400 (EDT)
- Reply-to: hanlonr at cox.net
- Sender: owner-wri-mathgroup at wolfram.com
n=Reverse[m]
n=Sort[m, #1[[1]]>#2[[1]]&]
Bob Hanlon
>
> From: brindaban at gmail.com (nilaakash)
To: mathgroup at smc.vnet.net
> Date: 2004/10/27 Wed PM 11:42:52 EDT
> To: mathgroup at smc.vnet.net
> Subject: [mg51682] [mg51641] Matrix Problem
>
> Suppose I have a m*n matrix like this type.
>
> M={{1, a1, b1, c1}, {2, a2, b2, c2}, {3, a3, b3, c3}, {4, a4, b4, c4}, {5, a5,
> b5, c5}, {6, a6, b6, c6}, {7, a7, b7, c7}}
>
> I want to change my matrix in such a way,
>
> N={{7, a7, b7, c7}, {6, a6, b6, c6}, {5, a5, b5, c5}, {4, a4, b4, c4}, {3, a3,
> b3, c3}, {2, a2, b2, c2}, {1, a1, b1, c1}}
>
> Could anybody tell me how to this.
>
> Thanks.
>
> nilaakash
>
>