(1) For the function y=f(x), the call format of the ezplot function is as follows.
① ezplot(f): Plots the graph of y=f(x) in the default interval -2π<x<2π. Here, f can be a function file name, a string composed of function expressions, an anonymous function expression, or a function name.
② ezplot(f,[a,b]): Plots the graph of y=f(x) in the interval a<x<b.
(2) For the implicit function f(x,y)=0, the call format of the ezplot function is as follows.
① ezplot(f): Plots the graph of f(x,y)=0 in the default interval -2π<x<2π and -2π<y<2π.
② ezplot(f,[a,b]): Plots the graph of f(x,y)=0 in the interval a<x<b and a<y<b.
③ ezplot(f,[xmin, xmax, ymin, ymax]): Plots the graph of f(x,y)=0 in the interval xmin<x<xmax and ymin<y<ymax.
(3) For the parametric equations x=x(t) and y=y(t), the call format of the ezplot function is as follows.
① ezplot(x, y): Plots the graph of x=x(t) and y=y(t) in the default interval 0<t<2Π.
② ezplot(x, y, [tmin, tmax]): Plots the graph of x=x(t) and y=y(t) in the interval tmin<t<tmax.
Example of implicit function plotting application
The program is as follows;
subplot(2,2,1);
ezplot(‘x^2+y^2-9’);axis equal
subplot(2,2,2);
ezplot(@(x,y) x^3+y^3-5*x*y+1/5)
subplot(2,2,3);
ezplot(‘cos(tan(pi*x))’,[0,1])
subplot(2,2,4);
ezplot(‘8*cos(t)’,’4*sqrt(2)*sin(t)’,[0,2*pi])
The ezsurf function calls the functionality of the surf function, and its call format is as follows.
(1) ezsurf(f): Plots the surface z=f(x,y), where the representation of f is the same as that of the ezplot function. x and y take the default range -2π<x<2π, -2π<y<2π.
(2) ezsurf(f,[xmin, xmax, ymin, ymax]) or ezsurf(f,[min,max]): Plots the surface z=f(x,y) in the specified interval.
(3) ezsurf(x,y,z): Plots the surface of the parametric equations x=x(s,t), y=y(s,t), z=z(s,t) in the default region -2π<s<2π, -2π<t<2π.
(4) ezsurf(x, y, z, [smin, smax, tmin,tmax] or ezsurf(x, y,z,[min max]): Plots the surface of the parametric equations in the specified region.
Example
ezsurf(‘exp(-s)*cos(t)’,’exp(-s)*sin(t)’,’t’,[0,8,0,5*pi])
Click the blue text
Follow us

Image and text / Network
Editor / Zhao Pei
Reviewer / He Jingxian