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!