Export dataset to excel including serial date numbers
古いコメントを表示
Hi all,
ich have a dataset where the first column represents the time, in form of the matlab serial date number. When I use the function
export(DS,'XLSfile',filename)
the time I see in Excel is wrong by 1900 years, representing the different date systems. Is there an elegant way to export the whole dataset to excel with the first column beeing the time in form of the Excel serial date number? And wouldn't it probably make sense to incorporate such a function in the export function?
Regards, bearli
回答 (1 件)
Andrei Bobrov
2013 年 3 月 20 日
編集済み: Andrei Bobrov
2013 年 3 月 20 日
Ds = datenum('30-Dec-2013') - 693960;
If you have Financial Toolbox, you can use function m2xdate.
Ds = m2xdate(datenum('30-Dec-2013'));
カテゴリ
ヘルプ センター および File Exchange で Spreadsheets についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!