How to combine three vectors to a single date vector

조회 수: 1 (최근 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')

카테고리

Help CenterFile 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