help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swap rows in matrix


From: Rudolf Widmer-Schnidrig
Subject: Re: Swap rows in matrix
Date: Wed, 10 Nov 2010 19:19:40 +0100
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6

On 10.11.10 19:11, José Luis García Pallero wrote:
Hello,
I have a matrix that will be plotted via imagesc() function. The
problem is that the image is rotated 180 degrees, so I need to
exchange the rows in the matrix: row 1 with row N, row 2 and row N-1,
etc. Exist any function in Octave to do the swap?
Thanks

Try flipud or fliplr              cheers,      Ruedi

--
+---------------------------------------------------------------+
              Rudolf Widmer-Schnidrig
              Black Forest Observatory (BFO)
              Heubach 206
      D-77709 Wolfach, Germany
              e-mail: address@hidden
              phone:  +49 7836 2151
              fax:  +49 7836 955240
              48d 19' 48.24" North  8d 19' 23.13" East

+---------------------------------------------------------------+



reply via email to

[Prev in Thread] Current Thread [Next in Thread]