Mercurial > octave
comparison scripts/general/flipud.m @ 8664:e07e93c04080
style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 04 Feb 2009 10:56:23 -0500 |
parents | 83a8781b529d |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8663:4238f2600a17 | 8664:e07e93c04080 |
---|---|
43 if (nargin != 1) | 43 if (nargin != 1) |
44 print_usage (); | 44 print_usage (); |
45 endif | 45 endif |
46 | 46 |
47 if (ndims (x) > 2) | 47 if (ndims (x) > 2) |
48 error ("flipud: Only works with 2-d arrays") | 48 error ("flipud: Only works with 2-d arrays"); |
49 endif | 49 endif |
50 | 50 |
51 nr = rows (x); | 51 nr = rows (x); |
52 y = x (nr:-1:1, :); | 52 y = x (nr:-1:1, :); |
53 | 53 |