- 1、本文档共89页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
【MATLAB课件】第六讲 Matlab绘图
* Instructor notes: Here we see our first example of fairly full featured 2D plot. In the slides that follow we will see how to go about arriving at a plot like this. The plot has a title that describes the dependent and independent variables. It has a label for the x-axis and for the y-axis. Each of these axis labels indicate what is being plotted with the corresponding units included in parentheses. The plot has major tick marks on each axis and the scale is such that an easily read step size occurs between each tick mark. Because there is more than one data set being plotted, there is a legend that indicates which curve corresponds to which data set. Note that the theoretical data is just a line, while the experimental data is a collection of data points that are connected by line segments. Data symbols should be used for measured data only, not for theoretical curves. Finally, there is a small text box that describes what is being plotted. * * * * * * stem3函数绘制离散序列数据的三维杆图,常用格式为: stem3(z) stem3(x,y,z) pie3函数绘制三维饼图,常用格式为: pie3(x) fill3函数等效于三维函数fill,可在三维空间内绘制出填充过的多边形,常用格式为: fill3(x,y,z,c) 例6-21 绘制三维图形: (1) 绘制魔方阵的三维条形图。 (2) 以三维杆图形式绘制曲线y=2sin(x)。 (3) 已知x=[2347,1827,2043,3025],绘制饼图。 (4) 用随机的顶点坐标值画出五个黄色三角形。 程序如下: subplot(2,2,1); bar3(magic(4)) subplot(2,2,2); y=2*sin(0:pi/10:2*pi); stem3(y); subplot(2,2,3); pie3([2347,1827,2043,3025]); subplot(2,2,4); fill3(rand(3,5),rand(3,5),rand(3,5), y ) 例6-22 绘制多峰函数的瀑布图和等高线图。 程序如下: subplot(1,2,1); [X,Y,Z]=peaks(30); waterfall(X,Y,Z) xlabel(X-axis),ylabel(Y-axis),zlabel(Z-axis); subplot(1,2,2); contour3(X,Y,Z,12,k); %其中12代表高度的等级数 xlabel(X-axis),ylabel(Y-axis),zlabel(Z-axis); 符号表达式进行三维绘图 例6-23 绘制椭球面 ezmesh, ezsurf u=-2*pi:0.1:2*pi; v=-2*pi:0.1:2*pi; ezmesh(3*cos(u)*sin(v),2*cos(u)*cos(v),sin(u),[-2*pi,2*pi,-2*pi,2*pi]) 例6-24:绘制正螺面 u,v在-2pi至2pi 命令为ezsurf ezsurf(u*sin(v),u*cos(v),‘4*u,[-2*pi,2*pi,-2*pi,2*pi]) 例6-25:绘制圆锥面 u,v在-2pi至2pi 命令为ezsurf ezsurf(u*sin(v),u*cos(v),u,[-2*pi,2*pi,-2*pi,2*pi]) 6.5 图形修饰处理 6.5
您可能关注的文档
最近下载
- (正式版)D-L∕T 860.74-2014 电力自动化通信网络和系统 第7-4部分:基本通信结构 兼容逻辑节点类和数据类.docx VIP
- 钢格栅板及配套件国家标准.pdf
- 防火墙运维.docx VIP
- T_BPMA 0010—2021_现制现售净水机卫生管理规范.pdf VIP
- 有害物质识别与评估控制程序.doc VIP
- 胃脘痛•胃痞病(胃息肉)中医临床路径标准住院表单.docx VIP
- JAVA应用系统开发规范概要1.doc VIP
- 临床诊疗指南(肿瘤科分册).doc
- 剑桥少儿英语一级上unit15_a_happy_new_year.ppt VIP
- 2024年05月广东惠州市生态环境局博罗分局和博罗县污染防治攻坚战总指挥部办公室公开招聘编外人员笔试历年典型题及考点剖析附带答案含详解.docx VIP
文档评论(0)