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!