【发布时间】:2019-07-07 19:32:30
【问题描述】:
我有一个包含两列(日期、值)的数组来绘制
date = [2002 2003 2004 2005 ....] %sometimes 2003 2005 2006 2009 and so on%
value = [918.5345 918.5361 918.5354 ....]
当我按如下方式绘制散点图时:
subplot(3,1,1);
hold on;
scatter(date,value,'+');
grid on
xlabel('Time')
ylabel('Y(m)')
hold off
我想要的是设置标签以显示 y 轴上的值(例如 918.5345)。
另外,x 轴只是(日期)...(例如 2002 2003 2004 ...)上的值,而不是 2002.5 2003.5
我使用 Matlab R2016a
【问题讨论】:
-
你读过documentation吗?
标签: matlab axis axis-labels axes