Write one year date into a excel?

조회 수: 1 (최근 30일)
Jason
Jason 2016년 4월 13일
댓글: Muhammad Usman Saleem 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 CenterFile Exchange에서 Time Series Objects에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by