# HG changeset patch # User jwe # Date 1197322931 0 # Node ID 30100a15625cc784a539dbda6fed30681f34b1f3 # Parent add731f4024dbc51947a57262d8ecb045028ff48 [project @ 2007-12-10 21:42:11 by jwe] diff -r add731f4024d -r 30100a15625c scripts/ChangeLog --- a/scripts/ChangeLog Mon Dec 10 21:31:15 2007 +0000 +++ b/scripts/ChangeLog Mon Dec 10 21:42:11 2007 +0000 @@ -1,5 +1,7 @@ 2007-12-10 John W. Eaton + * plot/sombrero.m, plot/peaks.m: Use surf instead of mesh. + * general/issymmetric.m: Use ' instead of .' for compatibility with previous versions of Octave. * general/ishermitian.m: Delete. diff -r add731f4024d -r 30100a15625c scripts/plot/peaks.m --- a/scripts/plot/peaks.m Mon Dec 10 21:31:15 2007 +0000 +++ b/scripts/plot/peaks.m Mon Dec 10 21:42:11 2007 +0000 @@ -46,7 +46,7 @@ ## If @var{n} is a vector, then it represents the @var{x} and @var{y} values ## of the grid on which to calculate the above function. The @var{x} and ## @var{y} values can be specified separately. -## @seealso{mesh} +## @seealso{surf, mesh, meshgrid} ## @end deftypefn ## Expression for the peaks function was taken from the following paper: @@ -76,7 +76,7 @@ - 1 / 3 * exp(- (X + 1) .^ 2 - Y .^ 2); if (nargout == 0) - mesh (x, y, Z); + surf (x, y, Z); elseif (nargout == 1) X_out = Z; else diff -r add731f4024d -r 30100a15625c scripts/plot/sombrero.m --- a/scripts/plot/sombrero.m Mon Dec 10 21:31:15 2007 +0000 +++ b/scripts/plot/sombrero.m Mon Dec 10 21:42:11 2007 +0000 @@ -27,7 +27,7 @@ ## @example ## z = sin (sqrt (x^2 + y^2)) / (sqrt (x^2 + y^2)) ## @end example -## @seealso{mesh, meshgrid} +## @seealso{surf, meshgrid, mesh} ## @end deftypefn ## Author: jwe @@ -45,7 +45,7 @@ r = sqrt (xx .^ 2 + yy .^ 2) + eps; tz = sin (r) ./ r; if (nargout == 0) - mesh (tx, ty, tz); + surf (tx, ty, tz); box ("off"); else x = tx;