FUNCTION REFERENCE
fsurf
Surface plot of a function.
Surface plot of a function.
Syntax
s = fsurf(f)Syntax
s = fsurf(f, [min max])Syntax
s = fsurf(f, [xmin xmax ymin ymax])Syntax
s = fsurf(funx, funy, funz, [umin umax vmin vmax])Syntax
s = fsurf(..., 'MeshDensity', n, Name, Value)Evaluates f(x,y) on an n-by-n grid (MeshDensity, default 35) over the interval (default [-5 5] for x and y) and draws it with surf; three functions give the parametric surface (x(u,v), y(u,v), z(u,v)). The function is called once on the whole grid; when that errors, returns the wrong size or disagrees with scalar calls (x*y instead of x.*y), it is evaluated point by point. Other Name,Value pairs are surf's.
Example
s = fsurf(@(x, y) x.^2 - y.^2, [-1 1]); size(s.ZData) % [35 35]Differences from MATLAB: returns a surface; the grid is not refined adaptively or resampled when the axes are zoomed.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.