Write one year date into a excel?

1 Ansicht (letzte 30 Tage)
Jason
Jason am 13 Apr. 2016
If I want to write one year date into a excel, like year 2016. I have no idea how to code in matlab. Thanks
1/1/2016
1/2/2016
...
..
12/31/2016

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 13 Apr. 2016
Bearbeitet: Azzi Abdelmalek am 13 Apr. 2016
out=datestr(datenum('01/01/2016')+datenum(0:365),'mm/dd/yyyy')
xlswrite('your_file.xlsx',out)
  6 Kommentare
Andrei Bobrov
Andrei Bobrov am 13 Apr. 2016
out=datestr(datenum('01/01/2016')+(0:365)','mm/dd/yyyy');
Muhammad Usman Saleem
Muhammad Usman Saleem am 13 Apr. 2016
thanks Azzi

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Time Series Objects finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by