matlab二维绘图剖析

上传人:蓝** 文档编号:252511889 上传时间:2024-11-16 格式:PPT 页数:16 大小:731KB
返回 下载 相关 举报
matlab二维绘图剖析_第1页
第1页 / 共16页
matlab二维绘图剖析_第2页
第2页 / 共16页
matlab二维绘图剖析_第3页
第3页 / 共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
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 成人自考


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!