How to combine three vectors to a single date vector

2 ビュー (過去 30 日間)
Michiel Smit
Michiel Smit 2020 年 6 月 12 日
コメント済み: Ken Stanson 2020 年 6 月 14 日
Dear all,
currenty i am analyzing a dataset that has three vectors represenenting the date [year month date]. For example:
2000 1 1
2000 1 4
2000 1 9
2000 1 16
2000 1 17
I wish to combine these three arrays to single vector representing the date. Can anyone help me with this?

採用された回答

madhan ravi
madhan ravi 2020 年 6 月 12 日
datetime(Year,Month,Day)

その他の回答 (1 件)

Michiel Smit
Michiel Smit 2020 年 6 月 12 日
Nevermind, I already found a solution:
dates = datenum([year,month,day]);
datetick('x','mmmyy')
  1 件のコメント
madhan ravi
madhan ravi 2020 年 6 月 12 日
Using my answer , datetime(...) is the way to go.

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

カテゴリ

Help Center および File ExchangeCalendar についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by