matlab中的ezplot函数(MathWorks)
隨時隨地閱讀更多技術實戰干貨,獲取項目源碼、學習資料,請關注源代碼社區公眾號(ydmsq666)
一個容易使用的繪圖函數
語法
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)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 集合 延迟加载_java-如何
- 下一篇: 经典网络DenseNet介绍