电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

matlab中坐标轴设置技巧

matlab中坐标轴设置技巧_第1页
1/2
matlab中坐标轴设置技巧_第2页
2/2
Matlab 中的坐标轴设置技巧Matlab 中的坐标轴设置技巧axisoff; %去掉坐标轴axistight; %紧坐标轴axisequal; %等比坐标轴axis([-0.1, 8.1, -1.1, 1.1]); % 坐标轴的显示范围x = -pi/2:0.01:pi; plot(x,sin(x)) %先绘制个基本图形% gca: gca, h=figure(...);set(gca, 'XLim',[-pi/2pi]); %X 轴的数据显示范围set(gca,'XTick',[-pi/2:pi/4:pi]); %X 轴的记号点 set(gca,'XTickLabel',{'-pi/2' '-pi/4:' '0' 'pi/4' 'pi/2' 'pi*3/4''pi'}) % X 轴的记号set(gca,'XGrid','on'); %X 轴的网格set(gca,'XDir','reverse'); %逆转 X 轴set(gca,'XColor','red'); %X 轴的颜色set(gac,'Xscale','log') % x 轴以 log 形式显示xlim(min,max)matlab 画图设置图片大小以及线宽和字号命令 该文章讲述了 matlab 画图设置图片大小以及线宽和字号命令.set(gcf,'Units','centimeters','Position',[1010 7 5]);%设置图片大小为 7cm×5cm%get hanlde to current axis 返回当前图形的当前坐标轴的句柄,%(the first element is the relative distance of the axes to the left edge ofthe figure,...%the second the vertical distance from the bottom, and then the width andheight;set(gca,'Position',[.13 .17 .80 .74]);%设置 xy 轴在图片中占的比例set(get(gca,'XLabel'),'FontSize',8);%图上文字为 8 point 或小 5 号set(get(gca,'YLabel'),'FontSize',8);set(get(gca,'TITLE'),'FontSize',8);set(gca,'fontsize',8);set(gca,'linewidth',0.5); %坐标线粗 0.5 磅set(gca,'box','off');%Controls the box around the plotting areaset(get(gca,'Children'),'linewidth',1.5);%设置图中线宽 1.5 磅

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

matlab中坐标轴设置技巧

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部