diff scripts/plot/stairs.m @ 7245:d65670971cbc

[project @ 2007-12-04 03:03:54 by jwe]
author jwe
date Tue, 04 Dec 2007 03:03:55 +0000
parents a1dbe9d80eee
children 95dce69538ec
line wrap: on
line diff
--- a/scripts/plot/stairs.m
+++ b/scripts/plot/stairs.m
@@ -115,3 +115,14 @@
   endif
 
 endfunction
+
+%!demo
+%! x = 1:10;
+%! y = rand (1, 10);
+## stairs (x, y);
+
+%!demo
+%! x = 1:10;
+%! y = rand (1, 10);
+%! [xs, ys] = stairs (x, y);
+%! plot (xs, ys);