How to avoid dates being writen in scientific notation?
조회 수: 2 (최근 30일)
이전 댓글 표시
I made my dates using:
m(1,1) = str2num(datestr([2015,8,10,12,0,0],'yyyymmddhhMM'));
which writes date in scientific notation into m. Is there any way to avoid that? I want my dates to be as simple as 201508101200 in m.
댓글 수: 1
Walter Roberson
2015년 8월 11일
Isn't this the same question as http://uk.mathworks.com/matlabcentral/answers/233121-problem-writing-in-data-into-a-csv-using-fprintf ?
채택된 답변
Jeff E
2015년 8월 10일
If you really want it as an integer:
m = uint64(str2num(datestr([2015,8,10,12,0,0],'yyyymmddhhMM')));
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!