matlab 请问如何可以把我在x轴上的标记垂直显示,比如VerticalAlignment %input x and y,where x stands for the sieve size[mm]%y stands for percent passing[%]x=[50.837.525.019.012.59.54.75];y=[100.095.676.462.045.813.71.6];%plot Semilog
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/14 04:55:10
matlab 请问如何可以把我在x轴上的标记垂直显示,比如VerticalAlignment %input x and y,where x stands for the sieve size[mm]%y stands for percent passing[%]x=[50.837.525.019.012.59.54.75];y=[100.095.676.462.045.813.71.6];%plot Semilog
matlab 请问如何可以把我在x轴上的标记垂直显示,比如VerticalAlignment
%input x and y,where x stands for the sieve size[mm]
%y stands for percent passing[%]
x=[50.8
37.5
25.0
19.0
12.5
9.5
4.75];
y=[100.0
95.6
76.4
62.0
45.8
13.7
1.6];
%plot Semilog aggregate gragation chart
semilogx(x,y,'k-diamond','Color',[0,0,1]);
grid on;
box on;
%add title and label
title('Precent passing vs.sieve size on semilog gradation','FontSize',14);
xlabel('sieve size,mm');
ylabel('Precent Passing,%');
%label each marker
set(gca,'XTick',[4.75,9.5,12.5,19.0,25.0,37.5,50.8]);
set(gca,'XTickLabel',{'4.75','9.5','12.5','19.0','25','37.5','50.8'});
我是指x轴的数字,4.75 9.5 12.5 变成垂直的
matlab 请问如何可以把我在x轴上的标记垂直显示,比如VerticalAlignment %input x and y,where x stands for the sieve size[mm]%y stands for percent passing[%]x=[50.837.525.019.012.59.54.75];y=[100.095.676.462.045.813.71.6];%plot Semilog
%label each marker
set(gca,'XTick',[4.75,9.5,12.5,19.0,25.0,37.5,50.8]);
set(gca,'XTickLabel',{ });
pos=[4.75,9.5,12.5,19.0,25.0,37.5,50.8];
h=text(pos,pos.*0-10,{'4.75','9.5','12.5','19.0','25','37.5','50.8'})
set(h,'Rotation',90)