Write one year date into a excel?

1 回表示 (過去 30 日間)
Jason
Jason 2016 年 4 月 13 日
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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 13 日
編集済み: Azzi Abdelmalek 2016 年 4 月 13 日
out=datestr(datenum('01/01/2016')+datenum(0:365),'mm/dd/yyyy')
xlswrite('your_file.xlsx',out)
  6 件のコメント
Andrei Bobrov
Andrei Bobrov 2016 年 4 月 13 日
out=datestr(datenum('01/01/2016')+(0:365)','mm/dd/yyyy');
Muhammad Usman Saleem
Muhammad Usman Saleem 2016 年 4 月 13 日
thanks Azzi

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTime Series Objects についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by