Mercurial > hg > octave-nkf
diff scripts/deprecated/lognormal_rnd.m @ 7696:0a362fa8f3c8
Add warning to rest of deprecated functions
author | David Bateman <dbateman@free.fr> |
---|---|
date | Fri, 04 Apr 2008 10:18:35 -0400 |
parents | 8e5371d47da6 |
children | 1cdb42b372e8 72830070a17b |
line wrap: on
line diff
--- a/scripts/deprecated/lognormal_rnd.m +++ b/scripts/deprecated/lognormal_rnd.m @@ -35,6 +35,14 @@ function rnd = lognormal_rnd (varargin) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + ["lognormal_rnd is obsolete and will be removed from a future\n", + "version of Octave, please use lognrnd instead"]); + endif + if (nargin > 1) a = varargin{2}; idx = a >= 0;