How we can plot time Vs data, with 10mins interval? Time is12hrs only i.e. starting from 7AM to 7PM on x-axis.
1 次查看(过去 30 天)
显示 更早的评论
Struggling to plot time Vs data with 10mins interval i.e. 72 reading for a day. Starting time 7AM upto 7PM, i.e. selected 12hrs only for some particular date only.
0 个评论
回答(1 个)
Iain
2013-8-21
figure
axishandle = gca;
plot(datenums_of_relevant_times,data)
set(axishandle,'XTickLabels',datestr(get(axishandle,'XTick'),desired_format))
Supply your own vector of "datenum" and the "desired_format" of your time strings.
2 个评论
Iain
2013-8-21
set(axishandle,'XTick',listofdatenumsthatyouwantshowed)
axis([xleft, xright, ybottom, ytop])
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!