changeset 13086:7015842c6562

codesprint: Add demo block for spy.m * spy.m: Add demo block and mark function as tested.
author Rik <octave@nomad.inbox5.com>
date Sat, 03 Sep 2011 15:23:18 -0700
parents 0fe1b5d4db56
children 71ce008332e2
files scripts/sparse/spy.m
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/sparse/spy.m	Sat Sep 03 17:15:14 2011 -0500
+++ b/scripts/sparse/spy.m	Sat Sep 03 15:23:18 2011 -0700
@@ -61,3 +61,11 @@
   axis ([0, n+1, 0, m+1], "ij");
 
 endfunction
+
+
+%!demo
+%! clf;
+%! spy (sprand (10,10, 0.2));
+
+%% Mark graphical function as tested by demo block
+%!assert (1);