diff scripts/deprecated/meshdom.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/meshdom.m
+++ b/scripts/deprecated/meshdom.m
@@ -27,6 +27,14 @@
 
 function [xx, yy] = meshdom (x, y)
 
+  persistent warned = false;
+  if (! warned)
+    warned = true;
+    warning ("Octave:deprecated-function",
+        ["meshdom is obsolete and will be removed from a future\n",
+	       "version of Octave, please use meshgrid instead"]);
+  endif
+
   if (nargin == 2)
     if (isvector (x) && isvector (y))
       xx = ones (length (y), 1) * x(:).';