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 についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by