Mercurial > hg > octave-lyh
diff scripts/testfun/demo.m @ 14335:ce2b59a6d0e5
maint: periodic merge of stable to default.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sun, 05 Feb 2012 15:32:24 -0800 |
parents | 11949c9795a0 4d917a6a858b |
children | 7277fe922e99 |
line wrap: on
line diff
--- a/scripts/testfun/demo.m +++ b/scripts/testfun/demo.m @@ -34,12 +34,12 @@ ## ## @example ## @group -## %!demo -## %! t = 0:0.01:2*pi; -## %! x = sin (t); -## %! plot (t,x); -## %! %------------------------------------------------- -## %! % the figure window shows one cycle of a sine wave +## %!demo +## %! t = 0:0.01:2*pi; +## %! x = sin (t); +## %! plot (t, x); +## %! %------------------------------------------------- +## %! % the figure window shows one cycle of a sine wave ## @end group ## @end example ## @@ -53,7 +53,7 @@ ## with the code ## ## @example -## %! input("Press <enter> to continue: ","s"); +## %! input("Press <enter> to continue: ","s"); ## @end example ## ## @noindent @@ -72,12 +72,12 @@ ## ## @example ## @group -## %!demo if 1 -## %! function y=f(x) -## %! y=x; -## %! endfunction -## %! f(3) -## %! endif +## %!demo if 1 +## %! function y=f(x) +## %! y=x; +## %! endfunction +## %! f(3) +## %! endif ## @end group ## @end example ##