23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2ezmeshc<br />

Purpose Easy to use combination mesh/contour plotter<br />

Syntax ezmeshc(f)<br />

ezmeshc(f,domain)<br />

ezmeshc(x,y,z)<br />

ezmeshc(x,y,z,[smin,smax,tmin,tmax]) or ezmeshc(x,y,z,[min,max])<br />

ezmeshc(...,n)<br />

ezmeshc(...,'circ')<br />

Description ezmeshc(f) creates a graph of f(x,y), where f is a string that represents a<br />

mathematical function of two variables, such as x and y.<br />

ezmeshc<br />

The function f is plotted over the default domain: -2π < x < 2π, -2π < y < 2π.<br />

<strong>MATLAB</strong> chooses the computational grid according to the amount of variation<br />

that occurs; if the function f is not defined (singular) for points on the grid, then<br />

these points are not plotted.<br />

ezmeshc(f,domain) plots f over the specified domain. domain can be either a<br />

4-by-1 vector [xmin, xmax, ymin, ymax] or a 2-by-1 vector [min, max] (where,<br />

min < x < max, min < y < max).<br />

If f is a function of the variables u and v (rather than x and y), then the domain<br />

endpoints umin, umax, vmin, and vmax are sorted alphabetically. Thus,<br />

ezmeshc('u^2 - v^3',[0,1],[3,6]) plots u 2 - v 3 over 0 < u < 1, 3 < v < 6.<br />

ezmeshc(x,y,z) plots the parametric surface x = x(s,t), y = y(s,t), and z = z(s,t)<br />

over the square: -2π < s < 2π, -2π < t < 2π.<br />

ezmeshc(x,y,z,[smin,smax,tmin,tmax]) or ezmeshc(x,y,z,[min,max])<br />

plots the parametric surface using the specified domain.<br />

ezmeshc(...,n) plots f over the default domain using an n-by-n grid. The<br />

default value for n is 60.<br />

ezmeshc(...,'circ') plots f over a disk centered on the domain.<br />

Remarks rotate3d is always on. To rotate the graph, click and drag with the mouse.<br />

Array multiplication, division, and exponentiation are always implied in the<br />

expression you pass to ezmeshc. For example, the <strong>MATLAB</strong> syntax for a mesh/<br />

contour plot of the expression,<br />

2-525

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

Saved successfully!

Ooh no, something went wrong!