matlab plot坐标轴刻度怎么调整?

作者&投稿:蔡任 (若有异议请与网页底部的电邮联系)
MATLAB画图,坐标轴刻度如何更改。~

如果只需要改 label 的话,被你注释掉的那两句改为
set(gca,'XTickLabel', strsplit(num2str(0.03*(0:200:600))))
set(gca,'YTickLabel', strsplit(num2str(0.03*(0:500:1500))))

试试
h=get(gcf,'children');
set(h,'XTick',0:0.05e-7:3.5e-7);

set(gca,'xtick',-5:1:5)

Form formPreview = new Form();
public Leaf(string name) : base(name) { }
public override void Add(Component c)
{
Console.WriteLine("Cannot add to a leaf");
}
public override void Remove(Component c)
{
Console.WriteLine("Cannot remove to a leaf");
}
public override void Display(int depth)
{
Console.WriteLine(new string('-',depth)+name);
}
}


彭阳县13078576990: matlab plot坐标轴刻度怎么调整? -
慕侍艾朗: 试试 h=get(gcf,'children'); set(h,'xtick',0:0.05e-7:3.5e-7);

彭阳县13078576990: MATLAB图形用户界面如何设置坐标轴刻度 -
慕侍艾朗: 在figure界面选择上面的Edit Plot选项,也就是那个小箭头.然后双击图形的坐标轴.这时候图形下面会出现Property Editer面板.点击xlabel右边的Tricks.就可以设置坐标轴刻度了.如下图所示:

彭阳县13078576990: 用MATLAB的plot画图,但是坐标刻度太大,怎么调节刻度? -
慕侍艾朗: 在x轴标题输入框的右边有一个tick按钮,点进去以后可以手动改刻度

彭阳县13078576990: 如何在matlab中设置自坐标轴自己想要的刻度 -
慕侍艾朗: 拿X轴做例子.画y=6*sin(x)的图.没有设置gca的时候:设置了gca的时候 这个可以随便你怎么设置,哈哈.程序:clc;clearx=0:0.01:2*pi;y=6*sin(x);plot(x,y,'r-.');set(gca,'xtick',0.5:1:x(end)+1)%关键

彭阳县13078576990: matlab 怎么设置双Y轴的刻度,,就是用plotyy命令的 -
慕侍艾朗: [AX, H1, H2] = plotyy(x,y1,x,y2,'plot','plot'); set(AX(1),'Ylim',[2,6]) %设置左侧y轴的显示范围 set(AX(2),'Ylim',[2,6]) set(AX(1),'yTick',[2:1:6])%设置左侧y轴刻度 set(AX(2),'yTick',[2:1:6])

彭阳县13078576990: 3.5题,boxplot怎么给x轴标记坐标刻度 -
慕侍艾朗: 方法如下: figure; %设置坐标轴线宽,加边框,坐标字号 axes('linewidth',1, 'box', 'on', 'FontSize',16); %设置坐标轴label xlabel('时间(s)','FontSize',16); ylabel('压力(pa)','FontSize',16); grid on; hold on; plot(ScopeData1.time, ...

彭阳县13078576990: matlab 如何更改figure坐标轴刻度为不等间距刻度 -
慕侍艾朗: matlab坐标刻度调整为不等间距刻度代码: subplot(3,2,1) plot(x) title('默认格式') subplot(3,2,2) plot(x) set(gca,'xtick',[1 3 6 8]); set(gca,'ytick',[]); title('X自定义间隔,Y关闭') subplot(3,2,3) plot(x) set(gca,'xtick',[1 3 6 8]); set(gca,'xticklabel',sprintf('.4f|...

彭阳县13078576990: matlab如何控制坐标轴的标度 -
慕侍艾朗: t = linspace(0,10*pi,6); y = tan(t.^3); plot(t,y); set(gca,'XTick',t,'XTickLabel',sprintf('%dπ|',fix(t/pi)));

彭阳县13078576990: matlab多刻度多坐标怎么画?刻度如何设定? -
慕侍艾朗: 给你一个例子,你懂的 x = 0:0.01:20; y1 = 200*exp(-0.05*x).*sin(x); y2 = 0.8*exp(-0.5*x).*sin(10*x); [AX,H1,H2] = plotyy(x,y1,x,y2,'plot');

彭阳县13078576990: 向各位matlab中plot画图,坐标轴的设置问题.大侠求教 -
慕侍艾朗: 可以用matlab提供的坐标轴设置函数axis进行设置(对当前坐标轴进行设置),具体用法如下:plot(x,y);//画图后用axis函数设置坐标轴的范围axis([xminxmaxyminymax]);%设置坐标轴在指定的区间xmin、xmax表示设置横坐标的最小最大值;...

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 星空见康网