fmesh(fun)
fmesh(fun, xyinterval)
fmesh(fun, [xmin xmax ymin ymax])
fmesh(funx, funy, funz)
fmesh(..., Name, Value)
fmesh(parent, ...)
h = fmesh(...)
fmesh creates a functionsurface graphics object and displays a mesh for a function of two variables.
The function can be specified as fun(x,y). A parametric surface can be specified with funx(u,v), funy(u,v), and funz(u,v).
The default range is [-5 5 -5 5]. A two-element interval applies to both x and y ranges.
See functionsurface properties for the complete property list.
fmesh(@(x, y) sin(x) + cos(y), [-pi pi -pi pi]);
fmesh(@(x, y) x.^2 - y.^2, [-2 2 -2 2], 'MeshDensity', 51, 'LineWidth', 1.5);
fmesh(@(u, v) u, @(u, v) v, @(u, v) sin(u) + cos(v), [-pi pi -pi pi]);