m=linspace(datenum('6:00','HH:MM'),datenum('12:00','HH:MM'),13); set(gca,'xtick',6:0.5:12); for n=1:length(m) tm{n}=datestr(m(n),'HH:MM'); end set(gca,'xticklabel',tm); |
转载于:https://www.cnblogs.com/scorpio-qian/p/3208577.html
m=linspace(datenum('6:00','HH:MM'),datenum('12:00','HH:MM'),13); set(gca,'xtick',6:0.5:12); for n=1:length(m) tm{n}=datestr(m(n),'HH:MM'); end set(gca,'xticklabel',tm); |
转载于:https://www.cnblogs.com/scorpio-qian/p/3208577.html