Presentation is loading. Please wait.

Presentation is loading. Please wait.

Z Mathematical Model ‡ ' 图形处理.

Similar presentations


Presentation on theme: "Z Mathematical Model ‡ ' 图形处理."— Presentation transcript:

1 Z Mathematical Model ' 图形处理

2 基 本 绘 图 函 数 1 plot ,plot 建立向量或矩阵的图形 2 Loglog x、y轴都取对数标度建立图形 3 Semilogx x轴用于对数标度,y轴线性标度绘制图形 4 Semilogy y轴用于对数标度,x轴线性标度绘制图形 5 Title 给图形加标题 6 Xlabel,Ylabel 给x,y轴加标记 7 Text 在图形指定的位置上加文本字符串 8 gtext 在鼠标的位置上加文本字符串 9 grid 打开网格线

3 绘 图 入 门 1 plot的基本调用格式 2 对於变化剧烈的函数,可用fplot来进行较精确的绘图 3 对符号函数作图可用ezplot

4 特 殊 二(三)维 绘 图 函 数 1 bar(x,y) (barh(x,y),bar3,bar3h) 直方(水平)图
特 殊 二(三)维 绘 图 函 数 1 bar(x,y) (barh(x,y),bar3,bar3h) 直方(水平)图 2 comet (x,y) (comet3) 建立彗星流动图 3 errorbar(x,y,l,u) 图形加上误差范围 4 polar (theta,rho) 极坐标图 hist (y,x) 向量统计的直方图,其中y为要统计的。当x为标 量时,x指定了统计的区间数;当x为向量时,以该向量中 各元素为中心进行统计,区间数等于x向量的长度。 6 rose(theta) 极坐标频数累计柱状图

5 7 stairs (x,y) 阶梯图 8 stem(x,y,’fill’) 针状图 9 fill 实心图 10 feather 羽毛图 11 compass 罗盘图 quiver,quiver 向量场图,通常与contour(),gradient() 配合使用. 13 pie,pie 饼图

6 绘 制 三 维 曲 面 mesh(z)语句给出矩阵Z元素的三消隐图,surf和mesh的用法相似。为了方便测试立体绘图,MATLAB提供了一个peaks函数,可产生一个凹凸有致的曲面,包 含了三个局部极大点及三个局部极小点, 要画出此函数的最快方法即是直接键入peaks. 三维函数还有meshc(), meshz(), surfc(), surfl(), contourf(), waterfall()等.


Download ppt "Z Mathematical Model ‡ ' 图形处理."

Similar presentations


Ads by Google