Re: Matrix Problem

• To: mathgroup at smc.vnet.net
• Subject: [mg51700] Re: Matrix Problem
• From: Curt Fischer <crf3 at po.cwru.edu>
• Date: Fri, 29 Oct 2004 03:40:01 -0400 (EDT)
• References: <clpr7g\$a3d\$1@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```nilaakash wrote:
> 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}}

In[1]:=
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}};
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}};

In[3]:=
Reverse[m]

Out[3]=
{{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}}

In[4]:=
Reverse[m]\[Equal]n

Out[4]=
True

```

• Prev by Date: Re: Re: Memory Problems
• Next by Date: Re: Matrix Problem
• Previous by thread: Re: Matrix Problem
• Next by thread: Re: Matrix Problem