点点滴滴-Matlab学习-绘图

ezplot

ezplot(fun)绘制表达式 fun(x) 在默认定义域在 -2π < x < 2π 上的图形,其中 fun(x) 仅是 x 的显函数。

ezplot('x1^2+2*x2^2-4*x1-2*x1*x2')

点点滴滴-Matlab学习-绘图

ezplot(fun,[xmin,xmax]):绘制 fun(x) 在 xmin < x < xmax 域上的图形,[xmin,xmax] 是自定义区间

>> ezplot('x1^2+2*x2^2-4*x1-2*x1*x2',[-2 10])

点点滴滴-Matlab学习-绘图

ezplot(fun,[xmin,xmax,ymin,ymax]): 在 xmin < x < xmax 和 ymin < y < ymax 域中绘制 fun2(x,y) = 0

ezplot('x1^2+2*x2^2-4*x1-2*x1*x2',[-2,10,-1,2])

点点滴滴-Matlab学习-绘图