Mercurial > hg > octave-shane
changeset 7282:30100a15625c
[project @ 2007-12-10 21:42:11 by jwe]
author | jwe |
---|---|
date | Mon, 10 Dec 2007 21:42:11 +0000 |
parents | add731f4024d |
children | a1fdd4dabefb |
files | scripts/ChangeLog scripts/plot/peaks.m scripts/plot/sombrero.m |
diffstat | 3 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,7 @@ 2007-12-10 John W. Eaton <jwe@octave.org> + * 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.
--- a/scripts/plot/peaks.m +++ b/scripts/plot/peaks.m @@ -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
--- a/scripts/plot/sombrero.m +++ b/scripts/plot/sombrero.m @@ -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;