matlab图像输出设置讲述.docx

  1. 1、本文档共15页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
matlab图像输出设置讲述

核心方法:通过图像设置命令,直接指定图片的大小。具体操作:(1) 完成画图及相关设置(字体大小、线宽、图例大小也是正常尺寸),(2) 此时WindowStyle is docked,要改为normal,有两种操作:1)在Figure properties——more properties中找到Windowstyle,然后用鼠标改为normal;2)或者直接用命令:set (gcf,windowstyle,normal)(3) 根据排版要求,确定图片的宽高,例如320*320 像素,然后使用命令set (gcf,Position,[500,300,320,320]) set(gcf,Units,centimeters,Position,[100 100 98]);% figure的position中的[left bottom width height] 是指figure的可画图的部分的左下角的坐标以及宽度和高度。(4) 使用copy figure将图片输出到Wordfigure; hold on;set(gca, YTick, [0 : 0.2 : 1]);box off;set(gca, YTickLabel, {matlab1, matlab2, matlab3,...? ? matlab4, matlab5, matlab6})hold onxL=xlim;yL=ylim;plot(xL,[yL(2),yL(2)],k,[xL(2),xL(2)],[yL(1),yL(2)],k)box offaxis([xL yL]) t=linspace(0,8,100);%%% linspace(X1, X2) generates a row vector of 100 linearlyequally spaced points between X1 and X2.linspace(X1, X2, N) generates N points between X1 and X2.a1=axes;%% axes Create axes in arbitrary positions. axes(position, RECT) opens up an axis at the specified locationand returns a handle to it. RECT = [left, bottom, width, height] specifies the location and size of the side of the axis box, relative to the lower-left corner of the Figure window, in normalized units where (0,0) is the lower-left corner and (1.0,1.0) is the upper-right.plot(t,sin(t));xt=get(gca,xtick);set(gca,XTick,[],XColor,w);xL=xlim;p=get(gca,Position);box off;figurea2=axes(Position,p+[0,p(4)/2,0,-p(4)/2]); % 确定坐标位置,p为上述xlim(xL); %定义x轴坐标box off;set(gca,XTick,xt,Color,None,YTick,[]);简单点儿说吧:xtick是刻度(小竖线);xticklabel 刻度值(竖线下面的数值)。set(gca,xtick,-pi:pi/2:pi)这句的意思是:手动设置x轴刻度,-pi到pi之间,每间隔pi/2,划一小竖线;set(gca,xticklabel,{-pi,-pi/2,0,pi/2,pi})这句的意思是:给刚才划上的小竖线,标个数值。如果你把它改成:set(gca,xticklabel,{a,b,c,d,e}),那么那小竖线下就变成:a,b,c,d,e了。希望对你有用!findobjfindobj:特殊属性的图形对象?语法:1.findobj:findobj返回根对象的句柄和所有子对象(findobj returns handles of the root object and all its descendants without assigning the result to a variable.)2.h = findobj:返回根对象的句柄和所有子对象3.h = findobj(PropertyName,PropertyValue,...)返回所有属性名为‘PropertyName’,属性值为Property

文档评论(0)

shuwkb + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档