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