How to combine three vectors to a single date vector

1 vue (au cours des 30 derniers jours)
Michiel Smit
Michiel Smit le 12 Juin 2020
Commenté : Ken Stanson le 14 Juin 2020
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?

Réponse acceptée

madhan ravi
madhan ravi le 12 Juin 2020
datetime(Year,Month,Day)

Plus de réponses (1)

Michiel Smit
Michiel Smit le 12 Juin 2020
Nevermind, I already found a solution:
dates = datenum([year,month,day]);
datetick('x','mmmyy')
  1 commentaire
madhan ravi
madhan ravi le 12 Juin 2020
Using my answer , datetime(...) is the way to go.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by