create day month and year
Ältere Kommentare anzeigen
I want to create three tables in Matlab Year,Month and Day and then concatenate into one column so that
1970 1 1
1970 1 2
.
.
.
1970 12 1
1 Kommentar
Stephen23
am 2 Sep. 2016
Azzi Abdelmalek's answer is the fastest, neatest, and best solution to this question.
Akzeptierte Antwort
Weitere Antworten (1)
Azzi Abdelmalek
am 2 Sep. 2016
d1=datenum('01-01-1971','dd-mm-yyyy')
d2=datenum('31-12-1971','dd-mm-yyyy')
d=datevec(d1:d2)
d=d(:,1:3)
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!