matlab 请问如何可以把我在x轴上的标记垂直显示,比如VerticalAlignment
来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/06/23 03:06:11
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 变成垂直的
![](http://img.wesiedu.com/upload/5/0e/50e8926f43926aa57d8f6e9b5e94fe87.jpg)
%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 变成垂直的
![](http://img.wesiedu.com/upload/5/0e/50e8926f43926aa57d8f6e9b5e94fe87.jpg)
![matlab 请问如何可以把我在x轴上的标记垂直显示,比如VerticalAlignment](/uploads/image/z/19062261-45-1.jpg?t=matlab+%E8%AF%B7%E9%97%AE%E5%A6%82%E4%BD%95%E5%8F%AF%E4%BB%A5%E6%8A%8A%E6%88%91%E5%9C%A8x%E8%BD%B4%E4%B8%8A%E7%9A%84%E6%A0%87%E8%AE%B0%E5%9E%82%E7%9B%B4%E6%98%BE%E7%A4%BA%2C%E6%AF%94%E5%A6%82VerticalAlignment)
%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)
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)
请问编程高手,在matlab中如何将一个矩阵的某些位置进行标记?
如何在matlab中曲线上标记某点
如何在matlab里x轴显示固定的几个坐标
请问如何用matlab画三维点,已知x,y,z的坐标,在三维坐标系上显示
matlab 中如何在所画的图形上做注释,比如我画了一个图有2条曲线,想区别一下两条曲线,如何在图中做标记?
如何在MATLAB二维图中画一条X=8,垂直于X轴的直线,y=0到14
在CF的战场模式中,如何在左上角的地图上打标记?我看到有人在地图上标记后会显示一个小红圈不断的扩大
请问,在Matlab绘图中,如何实现如下坐标轴的标注显示,以及图中曲线的说明?
matlab 中如何设置可以让图像在坐标原点显示,即y轴在中间(0,0)点
请问可以在纸币上做个小小的标记吗?
1、2007Excel作折线图,横轴上垂直显示的日期可以倾斜显示吗?2、如何添加坐标名称?
如何在matlab 上计算图形面积并在figure上显示