宝塔服务器面板,一键全能部署及管理,送你10850元礼包,点我领取

随时随地阅读更多技术实战干货,获取项目源码、学习资料,请关注源代码社区公众号(ydmsq666)

matlab中的ezplot函数(MathWorks-编程部落matlab中的ezplot函数(MathWorks-编程部落

一个容易使用的绘图函数

语法

ezplot(f)
ezplot(f,[min,max])
ezplot(f,[xmin,xmax,ymin,ymax])
ezplot(x,y)
ezplot(x,y,[tmin,tmax])
ezplot(…,figure_handle)
ezplot(axes_handle,…)
h = ezplot(…)

描述

1、ezplot(f)  在默认区间[-2pi,2pi]上绘制函数f=f(x)     f 可以是定义函数的M文件名或者一个匿名函数或者一个字符串

2、ezplot(f,[min,max])   在区间min < x < max上绘制函数 f = f(x) 

3、对于隐式定义的函数f = f(x,y):ezplot(f)绘制的是 f(x,y) = 0   默认区间是 -2pi < x < 2pi, -2pi < y < 2pi.

4、ezplot(f,[xmin,xmax,ymin,ymax]) :绘制 f(x,y) = 0   区间是xmin < x < xmax and ymin < y < ymax.

5、ezplot(f,[min,max])  :绘制 f(x,y) = 0   区间:min < x < max and min < y < max.

6、ezplot(x,y): 绘制含参函数 x = x(t)和y = y(t)  默认区间: 0 < t < 2pi.

7、ezplot(x,y,[tmin,tmax]):   绘制含参函数 x = x(t)和y = y(t)  区间:tmin < t < tmax.

8、ezplot(…,figure_handle)   在指定的区域,在figure窗口绘制通过handle figure指定的函数

9、ezplot(axes_handle,…)   plots into the axes with handle axes_handle instead of the current axes (gca).

10、h = ezplot(…) returns the handles to a line objects in h.

例子

绘制隐式函数x2 – y4 = 0 区间:[-2pi,2pi]

ezplot(‘x^2-y^4’)

matlab中的ezplot函数(MathWorks-编程部落matlab中的ezplot函数(MathWorks-编程部落