diff scripts/deprecated/values.m @ 10881:22cd681a4e28

Deprecate values.m
author Rik <octave@nomad.inbox5.com>
date Tue, 10 Aug 2010 14:09:31 -0700
parents scripts/statistics/base/values.m@eb63fbe60fab
children 1740012184f9
line wrap: on
line diff
copy from scripts/statistics/base/values.m
copy 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