Navigation

Operators and Keywords

Function List:

C++ API

sombrero.m File Reference


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

Function Documentation

endif endfunction !demo !sombrero (  ) 

box ( "off"   ) 

endif else error ( "sombrero: number of grid lines must be greater than 1"   ) 

if ( nargout  = = 0  ) 

endif if ( nargin< 2) if(n >  1  ) 

endif else print_usage (  ) 


Variable Documentation

function[x, y, z]

Initial value:

 sombrero (n)

  if (nargin == 0)
    n = 41

r = meshgrid (tx, ty) sqrt (xx .^ 2 + yy .^ 2) + eps

ty

tz = sin (r) ./ r

else x = tx

y = ty

z = tz