
Change the x axis in a figure with time
7 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I have a question:
I have a figure and I want to change the x axis (which are numbers from 1 to 48) to time scale, like this:
00:00 00:30 01:00......................23:30
any ideas?
thanks
0 件のコメント
回答 (2 件)
Peter Perkins
2017 年 4 月 26 日
編集済み: Peter Perkins
2017 年 4 月 26 日
In MATLAB R2014b or newer, try this:
>> t = duration(0:.5:23.5,0,0,'Format','hh:mm');
>> x = rand(size(t));
>> plot(t,x)

0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Annotations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!