12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ezmeshcPurpose2ezmeshcEasy to use combination mesh/contour plotterSyntaxDescriptionezmeshc(f)ezmeshc(f,domain)ezmeshc(x,y,z)ezmeshc(x,y,z,[smin,smax,tmin,tmax]) or ezmeshc(x,y,z,[min,max])ezmeshc(...,n)ezmeshc(...,'circ')ezmeshc(f) creates a graph of f(x,y), where f is a string that represents amathematical function of two variables, such as x and y.The function f is plotted over the default domain: -2π < x < 2π, -2π < y < 2π.<strong>MATLAB</strong> chooses the computational grid according to the amount of variationthat occurs; if the function f is not defined (singular) for points on the grid, thenthese points are not plotted.ezmeshc(f,domain) plots f over the specified domain. domain can be either a4-by-1 vector [xmin, xmax, ymin, ymax] or a 2-by-1 vector [min, max] (where,min < x < max, min < y < max).If f is a function of the variables u and v (rather than x and y), then the domainendpoints umin, umax, vmin, and vmax are sorted alphabetically. Thus,ezmeshc('u^2 - v^3',[0,1],[3,6]) plots u 2 - v 3 over 0 < u < 1, 3 < v < 6.ezmeshc(x,y,z) plots the parametric surface x = x(s,t), y = y(s,t), and z = z(s,t)over the square: -2π < s < 2π, -2π < t < 2π.ezmeshc(x,y,z,[smin,smax,tmin,tmax]) or ezmeshc(x,y,z,[min,max])plots the parametric surface using the specified domain.ezmeshc(...,n) plots f over the default domain using an n-by-n grid. Thedefault value for n is 60.ezmeshc(...,'circ') plots f over a disk centered on the domain.Remarksrotate3d is always on. To rotate the graph, click and drag with the mouse.2-142

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!