Mercurial > hg > octave-lyh
comparison scripts/deprecated/clearplot.m @ 11737:dd93a39fa8fe release-3-0-x
Add warning to rest of deprecated functions
author | David Bateman <dbateman@free.fr> |
---|---|
date | Fri, 04 Apr 2008 10:19:30 -0400 |
parents | 9d412bc1d54f |
children | 1cdb42b372e8 72830070a17b |
comparison
equal
deleted
inserted
replaced
11736:9d412bc1d54f | 11737:dd93a39fa8fe |
---|---|
25 | 25 |
26 ## Deprecated in version 3.0 | 26 ## Deprecated in version 3.0 |
27 | 27 |
28 function clearplot () | 28 function clearplot () |
29 | 29 |
30 persistent warned = false; | |
31 if (! warned) | |
32 warned = true; | |
33 warning ("Octave:deprecated-function", | |
34 ["function clearplot () is obsolete and will be removed from a future\n", | |
35 "version of Octave, please use clf instead"]); | |
36 endif | |
37 | |
30 clf (); | 38 clf (); |
31 | 39 |
32 endfunction | 40 endfunction |