matrix of values convert into dates

2 visualizzazioni (ultimi 30 giorni)
i have a matrix like this
1 1 1973
2 1 1973
3 1 1973
4 1 1973
5 1 1973
6 1 1973
7 1 1973
8 1 1973
9 1 1973
10 1 1973
11 1 1973
12 1 1973
13 1 1973
where (:,1)=day (:,2)=month (:,3)=year
i want convert each line in a vector with date format
and i have and other vector with a temp number, and i want plot my new vectors (dates) vs temp
DATES and TEMP, both have the same length

Risposta accettata

Walter Roberson
Walter Roberson il 16 Mag 2012
datenum(fliplr(YourMatrix))

Più risposte (0)

Categorie

Scopri di più su Dates and Time in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by