MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   【求助】时间做坐标轴的问题 (https://www.labfans.com/bbs/showthread.php?t=1457)

Purple 2008-02-27 12:51

【求助】时间做坐标轴的问题
 
想画这样一个图:
以时间为X轴,Y轴为与时间相对应的数据;
比如时间序列是 23:10 23:11 23:12 23:13 23:14
y = 1:1:5
怎么画

labfansyao 2008-02-27 17:59

set
 
x={'23:10',' 23:11',' 23:12',' 23:13',' 23:14'};
y=1:5;
plot(y,y,'*');
set(gca,'xtick',y,'xticklabel',x);

Purple 2008-02-27 19:30

thank you~


所有时间均为北京时间。现在的时间是 03:03

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.