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: [mg66408] Re: [mg66318] mirror image of a square matrix
  • From: Adriano Pascoletti <pascolet at dimi.uniud.it>
  • Date: Thu, 11 May 2006 02:16:56 -0400 (EDT)
  • References: <200605090635.CAA18543@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Try

mat[[All,Reverse@Range@n]]

Adriano Pascoletti


On 9 mag 2006, at 08:35, ravi wrote:

> Let me define the mirror image of a matrix as the operation of  
> flipping
> the columns such that the last column becomes the first, the second
> last becomes the second and so on. I would like to know if this can be
> done simpler than as follows:
>
> mat=Table[Random[],{n},{n}]
> matR=Transpose[Reverse[Transpose[mat]]]
> Are there any built in functions for operations like these?
> /ravi
>



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