Write one year date into a excel?

1 view (last 30 days)
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

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 13 Apr 2016
Edited: Azzi Abdelmalek on 13 Apr 2016
out=datestr(datenum('01/01/2016')+datenum(0:365),'mm/dd/yyyy')
xlswrite('your_file.xlsx',out)
  6 Comments
Andrei Bobrov
Andrei Bobrov on 13 Apr 2016
out=datestr(datenum('01/01/2016')+(0:365)','mm/dd/yyyy');

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!