Mercurial > hg > octave-nkf
comparison scripts/general/fliplr.m @ 6046:34f96dd5441b
[project @ 2006-10-10 16:10:25 by jwe]
author | jwe |
---|---|
date | Tue, 10 Oct 2006 16:10:31 +0000 |
parents | 2618a0750ae6 |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
6045:421d8a903df7 | 6046:34f96dd5441b |
---|---|
38 ## Author: jwe | 38 ## Author: jwe |
39 | 39 |
40 function y = fliplr (x) | 40 function y = fliplr (x) |
41 | 41 |
42 if (nargin != 1) | 42 if (nargin != 1) |
43 usage ("fliplr (x)"); | 43 print_usage (); |
44 endif | 44 endif |
45 | 45 |
46 if (ndims (x) > 2) | 46 if (ndims (x) > 2) |
47 error ("fliplr: Only works with 2-D arrays") | 47 error ("fliplr: Only works with 2-D arrays") |
48 endif | 48 endif |