diff scripts/general/flipud.m @ 7411:83a8781b529d

[project @ 2008-01-22 21:52:25 by jwe]
author jwe
date Tue, 22 Jan 2008 21:52:26 +0000
parents a1dbe9d80eee
children e07e93c04080
line wrap: on
line diff
--- a/scripts/general/flipud.m	Tue Jan 22 21:34:24 2008 +0000
+++ b/scripts/general/flipud.m	Tue Jan 22 21:52:26 2008 +0000
@@ -52,3 +52,12 @@
   y = x (nr:-1:1, :);
 
 endfunction
+
+%!assert((flipud ([1, 2; 3, 4]) == [3, 4; 1, 2]
+%! && flipud ([1, 2; 3, 4; 5, 6]) == [5, 6; 3, 4; 1, 2]
+%! && flipud ([1, 2, 3; 4, 5, 6]) == [4, 5, 6; 1, 2, 3]));
+
+%!error flipud ();
+
+%!error flipud (1, 2);
+