Mercurial > hg > octave-max
comparison scripts/testfun/demo.m @ 13065:1ca3cde15b18
codepsprint: tests for testfun functions
* demo.m, rundemos.m: Trivial tests.
* speed.m: New tests.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 03 Sep 2011 14:57:12 -0400 |
parents | 6d4c18565de1 |
children | e81ddf9cacd5 |
comparison
equal
deleted
inserted
replaced
13064:bae887ebea48 | 13065:1ca3cde15b18 |
---|---|
139 %!demo | 139 %!demo |
140 %! t=0:0.01:2*pi; x = sin(t); | 140 %! t=0:0.01:2*pi; x = sin(t); |
141 %! plot (t,x) | 141 %! plot (t,x) |
142 %! %------------------------------------------------- | 142 %! %------------------------------------------------- |
143 %! % the figure window shows one cycle of a sine wave | 143 %! % the figure window shows one cycle of a sine wave |
144 | |
145 %!error demo (); | |
146 %!error demo (1, 2, 3); |