Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: mirror image of a square matrix

  • To: mathgroup at smc.vnet.net
  • Subject: [mg66350] Re: mirror image of a square matrix
  • From: Mark_robert.holt at kcl.ac.uk
  • Date: Wed, 10 May 2006 06:34:20 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

You could map Reverse over the matrix as follows:

Reverse /@ mat

In[6]:=
mat=Table[Random[],{3},{3}] 
matR=Transpose[Reverse[Transpose[mat]]]


Out[6]=
{{0.212716,0.364254,0.440155},{0.198832,0.37651,0.0540443},{0.669819,0.554749,0.151404}}

Out[7]=
{{0.440155,0.364254,0.212716},{0.0540443,0.37651,0.198832},{0.151404,0.554749,0.669819}}

In[8]:=
Reverse/@mat

Out[8]=
{{0.440155,0.364254,0.212716},{0.0540443,0.37651,0.198832},{0.151404,0.554749,0.669819}}

Link to the forum page for this post:
http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=10266#p10266
Posted through http://www.mathematica-users.org [[postId=10266]]



  • Prev by Date: Re: mirror image of a square matrix
  • Next by Date: Re: mirror image of a square matrix
  • Previous by thread: Re: mirror image of a square matrix
  • Next by thread: Re: mirror image of a square matrix