Mercurial > hg > octave-lyh
changeset 10881:22cd681a4e28
Deprecate values.m
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 10 Aug 2010 14:09:31 -0700 |
parents | 92c3e8068f28 |
children | 055b95863699 |
files | scripts/ChangeLog scripts/deprecated/module.mk scripts/deprecated/values.m scripts/statistics/base/module.mk scripts/statistics/base/values.m |
diffstat | 4 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,8 @@ +2010-08-10 Rik <octave@nomad.inbox5.com> + + * statistics/base/module.mk, deprecated/module.mk, + statistics/base/values.m, deprecated/values.m: Deprecate values.m + 2010-08-08 Rik <octave@nomad.inbox5.com> * miscellaneous/unimplemented.m: Add newlines to format output for
--- a/scripts/deprecated/module.mk +++ b/scripts/deprecated/module.mk @@ -39,6 +39,7 @@ deprecated/str2mat.m \ deprecated/unmark_command.m \ deprecated/unmark_rawcommand.m \ + deprecated/values.m \ deprecated/weibcdf.m \ deprecated/weibinv.m \ deprecated/weibpdf.m \
rename from scripts/statistics/base/values.m rename to scripts/deprecated/values.m --- a/scripts/statistics/base/values.m +++ b/scripts/deprecated/values.m @@ -29,8 +29,17 @@ ## Author: KH <Kurt.Hornik@wu-wien.ac.at> ## Description: Extract unique elements +## Deprecated in version 3.4 + function v = values (x) + persistent warned = false; + if (! warned) + warned = true; + warning ("Octave:deprecated-function", + "values is obsolete and will be removed from a future version of Octave; please use unique instead"); + endif + if (nargin != 1) print_usage (); endif