What is the best way to write a duration type to an Excel file?
조회 수: 5 (최근 30일)
이전 댓글 표시
I have an array of duration type. I want to write it to Excel and then use it as a time in excel. Is there a recommended way to get this effect?
d = duration([24;25],[0;10],[10;17]);
xlswrite('Example.xlsb', d);
If you write the d to Excel, the spreadsheet will not contain any version of the duration information in d.
댓글 수: 0
채택된 답변
Lars Abrahamsson
2020년 12월 23일
What about the other function to create Excel files from tables?
writetable
추가 답변 (1개)
Walter Roberson
2016년 1월 14일
편집: Walter Roberson
2020년 12월 23일
So write a serial date number which is the duration in days (and fraction of a day). You may wish to go in with ActiveX and apply a time format to the cell.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Spreadsheets에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!