matlab的xticklabel问题i=0:pi/36:pi/2;i1=0;i2=(1/3)*pi;a=i-i1;b=i2-i1;y=(sin(a)).^2+(sin(b)).^2+(sin(a-b)).^2;plot(i,y,'b+:')>> set(gca,'xticklabel',0:5:90)坐标轴想显示0到90,但只显示到了40怎么办?

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/27 22:51:55
matlab的xticklabel问题i=0:pi/36:pi/2;i1=0;i2=(1/3)*pi;a=i-i1;b=i2-i1;y=(sin(a)).^2+(sin(b)).^2+(sin(a-b)).^2;plot(i,y,'b+:')>> set(gca,'xticklabel',0:5:90)坐标轴想显示0到90,但只显示到了40怎么办?
x)M,ILz>$39Ly9}E32m 2@uuVAumnum(Hԋ3؉uAN~FNzBqjFzr::VVONx-Ϛ7?]O;6X<D(dW';;vͳI*3, b ?BXH @} fü ob4σX _`g3ikGENfFA Ovt$ف<"

matlab的xticklabel问题i=0:pi/36:pi/2;i1=0;i2=(1/3)*pi;a=i-i1;b=i2-i1;y=(sin(a)).^2+(sin(b)).^2+(sin(a-b)).^2;plot(i,y,'b+:')>> set(gca,'xticklabel',0:5:90)坐标轴想显示0到90,但只显示到了40怎么办?
matlab的xticklabel问题
i=0:pi/36:pi/2;
i1=0;
i2=(1/3)*pi;
a=i-i1;
b=i2-i1;
y=(sin(a)).^2+(sin(b)).^2+(sin(a-b)).^2;
plot(i,y,'b+:')
>> set(gca,'xticklabel',0:5:90)
坐标轴想显示0到90,但只显示到了40怎么办?

matlab的xticklabel问题i=0:pi/36:pi/2;i1=0;i2=(1/3)*pi;a=i-i1;b=i2-i1;y=(sin(a)).^2+(sin(b)).^2+(sin(a-b)).^2;plot(i,y,'b+:')>> set(gca,'xticklabel',0:5:90)坐标轴想显示0到90,但只显示到了40怎么办?
先xlim([0 90])一下