Write one year date into a excel?

1 vue (au cours des 30 derniers jours)
Jason
Jason le 13 Avr 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

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 13 Avr 2016
Modifié(e) : Azzi Abdelmalek le 13 Avr 2016
out=datestr(datenum('01/01/2016')+datenum(0:365),'mm/dd/yyyy')
xlswrite('your_file.xlsx',out)
  6 commentaires
Andrei Bobrov
Andrei Bobrov le 13 Avr 2016
out=datestr(datenum('01/01/2016')+(0:365)','mm/dd/yyyy');
Muhammad Usman Saleem
Muhammad Usman Saleem le 13 Avr 2016
thanks Azzi

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Time Series Objects dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by