Hello,
I have an array that is 6xN The 6 rows are YYYY, DD, MM, HH, MM, SS from timestamp data
I would like to know how can I plot this as a timeseries?
>> timelist([1 2 3 4 5 6],1)
ans =
2012
16
1
11
11
48

 採用された回答

Oleg Komarov
Oleg Komarov 2012 年 7 月 31 日
編集済み: Oleg Komarov 2012 年 7 月 31 日

0 投票

Convert each column into a proper numeric date:
datenum(timelist')
EDIT
datetick('x')

3 件のコメント

Jacob Brinkmann
Jacob Brinkmann 2012 年 7 月 31 日
Ok, but how do I plot that in a meaningful way? plot(datenum(timelist'),ydata) doesn't show the date as the x axis, just some scalar
Oleg Komarov
Oleg Komarov 2012 年 7 月 31 日
See the edit, use it after you plotted.
Jacob Brinkmann
Jacob Brinkmann 2012 年 7 月 31 日
Ok, I should be able to figure the rest out now. Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Dates and Time についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by