函数ezplot无需数据准备,可以直接画出函数的图形,画隐函数图形很方便。
ezplot的几种使用形式如下:
ezplot(f):f是关于x的函数 (-2*pi
ezplot('sin(x)')
ezplot(f(x,y)):f(x,y)=0,隐函数 (-2*pi
syms x y
ezplot('x^3+y^3-3*x*y')
grid on
ezplot(f,[A,B]):f是关于x的函数(A
ezplot('sin(x)',[-3,3])
ezplot(f(x,y),[A,B]):f(x,y)=0,隐函数 (A
syms x y
ezplot('x^3+y^3-3*x*y',[-9,9])
grid on
ezplot(f(x,y),[XMIN,XMAX,YMIN,YMAX]):f(x,y)=0,隐函数(XMIN
ezplot('x^3+y^3-3*x*y',[-9,9,-6,6])
ezplot(f1,f2):画关于变量T的参数方程(0
syms t
ezplot(3*sin(t),3*cos(t))
ezplot(f1,f2,[TMIN,TMAX])(TMIN
ezplot(3*sin(t),3*cos(t),[-2,2])
ezplot(f,[A,B],FIG) ezplot(f(x,y),[XMIN,XMAX,YMIN,YMAX],FIG) ezplot(f1,f1,[TMIN,TMAX]) :指定第FIG幅图
ezplot(sin(x),[-3*pi,3*pi],5)
注意figure后跟的数字