MATLAB: Matrix of values convert into dates

datedate formatmatrixmatrix to date formatplot

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

Best Answer

datenum(fliplr(YourMatrix))