On 9 May 2006, at 15: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
>
Another possibility is:
matR=mat[[All, Range[n, 1, -1]]]
Andrzej Kozlowski
Tokyo,Japan