Functions | |
endif | if (nargin< 2) if(n > 1) tx |
if (nargout==0) surf(tx | |
box ("off") | |
endif else | error ("sombrero: number of grid lines must be greater than 1") |
endif else | print_usage () |
endif endfunction!demo | !sombrero () |
Variables | |
function [x, y, z] | |
r = meshgrid (tx, ty) sqrt (xx .^ 2 + yy .^ 2) + eps | |
tz = sin (r) ./ r | |
ty | |
else | x = tx |
y = ty | |
z = tz |
endif endfunction !demo !sombrero | ( | ) |
box | ( | "off" | ) |
if | ( | nargout | = = 0 |
) |
tz = sin (r) ./ r |
y = ty |
z = tz |