资源预览内容
第1页 / 共16页
第2页 / 共16页
第3页 / 共16页
第4页 / 共16页
第5页 / 共16页
第6页 / 共16页
第7页 / 共16页
第8页 / 共16页
第9页 / 共16页
第10页 / 共16页
第11页 / 共16页
第12页 / 共16页
第13页 / 共16页
第14页 / 共16页
第15页 / 共16页
第16页 / 共16页
亲,该文档总共16页全部预览完了,如果喜欢就下载吧!
点击查看更多>>
资源描述
Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,LOGO,Click to edit Master title style,Click to edit Master text styles,Second level,Third level,Fourth level,Company Logo,单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,*,Company Logo,*,单击此处编辑母版标题样式,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,Company Logo,*,MATLAB,二维图绘制,主要内容,图形窗口设置,标注图形,根本函数plot,综合应用例子,根本函数plot,1.plotx,plot(x)当x为一向量时,以x元素的值为纵坐标x的序号为横坐标值绘制曲线。当x为一实矩阵时,则以其序号为横坐标,按列绘制每列元素值相对于其序号的曲线。,当x为mn矩阵时,就有n条曲线。,ex:,x=1 2 3 4 5 8 7;x=1 2 3;4 5 8;,plot(x)plot(x),根本函数plot,2.plot(x,y),plot(x,y)以x 元素为横坐标值,y 元素为纵坐标值绘制曲线。,ex:,x=0:pi/100:2*pi,y=sin(x);,plot(x,y),根本函数plot,3.plot(x,y1,m1,x,y2,m2,)单窗口多曲线,以公共的x元素为横坐标值,以y1,y2,元素为纵坐标值绘制多条曲线,m1和m2为各图形性质包括线型、粗细、颜色。,ex:,x=0:pi/100:2*pi;,y1=sin(x);,y2=cos(x);,plot(x,y1,”-b”,x,y2,”-r”),根本函数plot,线型,点标记,颜色,-,实线,:,虚线,-.,点划线,-,间断线,.,点,o,小圆圈,x,叉子符,+,加号,*,星号,s,方格,d,菱形,朝上三角,v,朝下三角,朝右三角,朝左三角,p,五角星,h,六角星,y,黄色,m,棕色,c,青色,r,红色,g,绿色,b,蓝色,w,白色,k,黑色,根本函数plot,4.在MATLAB中,假设需要绘制出具有不同纵坐标标度的两个图形,可以使用plotyy(x1,y1,x2,y2)绘图函数。,其中x1,y1对应一条曲线,x2,y2对应另一条曲线。横坐标的标度一样,纵坐标有两个,左纵坐标用于x1,y1数据对,右纵坐标用于x2,y2数据对,同一x对应两纵坐标:,ex:,x1=0:pi/100:2*pi;,x2=pi:pi/100:3*pi;,y1=sin(x);,y2=cos(x);,plotyy(x1,y1,x2,y2),根本函数plot,同一,x,对应两纵坐标,plotyy(x,y1,x,y2),ex:,x=0:pi/100:2*pi;,y1=sin(x);,y2=cos(x);,plotyy(x,y1,x,y2),图形窗口设置,单窗口多曲线,1.plot函数,2.hold on函数,hold on 用于保持当前函数,使用以后用函数plot绘制的新图形叠印在原来的图形上。,hold off用来取消原来图形的疼惜状态。,x=0:pi/10:2*pi;,y1=sin(x);,y2=cos(x);,plot(x,y1);,hold on;,plot(x,y2);,hold on;,图形窗口设置,单窗口、多曲线分图绘制,subplot(m,n,i),将图形窗口分隔成,m*n,个子图形矩阵,并选择第,i,个子图形为当前图形。,ex,:,x=0:pi/10:2*pi;,y1=sin(x);,y2=cos(x);,y3=exp(x);,subplot(2,2,1);,plot(x,y1);,subplot(2,2,2);,plot(x,y2);,subplot(2,2,3);,plot(x,y3);,图形窗口设置,x=0:pi/10:2*pi;,y1=sin(x);,y2=cos(x);,y3
点击显示更多内容>>

最新DOC

最新PPT

最新RAR

收藏 下载该资源
网站客服QQ:3392350380
装配图网版权所有
苏ICP备12009002号-6