importing dates into excel

HI all, I issue the command
A=datestr(datenum({'02/11/08'},'dd/mm/yy')+(0:28:38*28),{'dd/mm/yy'});
but A has size 39 by 8 . I want to be 39 by 1 so as to import A in an excel as a column.

댓글 수: 1

Oleg Komarov
Oleg Komarov 2012년 5월 23일
You cannot supply the date format as {'dd/mm/yy'}

댓글을 달려면 로그인하십시오.

 채택된 답변

Oleg Komarov
Oleg Komarov 2012년 5월 23일

1 개 추천

Use cellstr()
cellstr(datestr(datenum({'02/11/08'},'dd/mm/yy')+(0:28:38*28),'dd/mm/yy'))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

질문:

2012년 5월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by