Mercurial > hg > octave-lyh
view scripts/general/fliplr.m @ 4:b4df021f796c
[project @ 1993-08-08 01:26:08 by jwe]
Initial revision
author | jwe |
---|---|
date | Sun, 08 Aug 1993 01:26:08 +0000 |
parents | |
children | 16a24e76d6e0 |
line wrap: on
line source
function y = fliplr (x) # usage: fliplr (x) # # Return x with the columns swapped. # # See also: flipu, rot90 if (nargin != 1) error ("usage: fliplr (x)"); endif y = x; nc = columns (x); y = x (:, nc:-1:1); endfunction