Mercurial > hg > octave-lyh
diff scripts/plot/peaks.m @ 7282:30100a15625c
[project @ 2007-12-10 21:42:11 by jwe]
author | jwe |
---|---|
date | Mon, 10 Dec 2007 21:42:11 +0000 |
parents | 5389a52df87b |
children | dbd0c77e575e |
line wrap: on
line diff
--- 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