diff scripts/plot/surface.m @ 11472:1740012184f9

Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author Rik <octave@nomad.inbox5.com>
date Sun, 09 Jan 2011 21:33:04 -0800
parents 60542efcfa2c
children fd0a3ac60b0e
line wrap: on
line diff
--- a/scripts/plot/surface.m
+++ b/scripts/plot/surface.m
@@ -82,21 +82,21 @@
     c = varargin{4};
 
     if (! size_equal (z, c))
-      error ("surface: z and c must have the same size");
+      error ("surface: Z and C must have the same size");
     endif
     if (isvector (x) && isvector (y) && ismatrix (z))
       if (rows (z) == length (y) && columns (z) == length (x))
         x = x(:)';
         y = y(:);
       else
-        error ("surface: rows (z) must be the same as length (y) and columns (z) must be the same as length (x)");
+        error ("surface: rows (Z) must be the same as length (Y) and columns (Z) must be the same as length (X)");
       endif
     elseif (ismatrix (x) && ismatrix (y) && ismatrix (z))
       if (! size_equal (x, y, z))
-        error ("surface: x, y, and z must have the same dimensions");
+        error ("surface: X, Y, and Z must have the same dimensions");
       endif
     else
-      error ("surface: x and y must be vectors and z must be a matrix");
+      error ("surface: X and Y must be vectors and Z must be a matrix");
     endif
   elseif (firststring == 4)
     x = varargin{1};
@@ -108,14 +108,14 @@
         x = x(:)';
         y = y(:);
       else
-        error ("surface: rows (z) must be the same as length (y) and columns (z) must be the same as length (x)");
+        error ("surface: rows (Z) must be the same as length (Y) and columns (Z) must be the same as length (X)");
       endif
     elseif (ismatrix (x) && ismatrix (y) && ismatrix (z))
       if (! size_equal (x, y, z))
-        error ("surface: x, y, and z must have the same dimensions");
+        error ("surface: X, Y, and Z must have the same dimensions");
       endif
     else
-      error ("surface: x and y must be vectors and z must be a matrix");
+      error ("surface: X and Y must be vectors and Z must be a matrix");
     endif
   elseif (firststring == 3)    
     z = varargin{1};
@@ -125,7 +125,7 @@
       x = 1:nc;
       y = (1:nr)';
     else
-      error ("surface: z argument must be a matrix");
+      error ("surface: Z argument must be a matrix");
     endif
   elseif (firststring == 2)    
     z = varargin{1};
@@ -135,7 +135,7 @@
       x = 1:nc;
       y = (1:nr)';
     else
-      error ("surface: z argument must be a matrix");
+      error ("surface: Z argument must be a matrix");
     endif
   else
     bad_usage = true;