Change a character array to time
조회 수: 4 (최근 30일)
이전 댓글 표시
Hello, I want to change the character array such as '113203' to time(hr:min:sec) 11 hours 32 minutes and 03 seconds. Would you please inform me of how to do it? Thanks in advance and happy Christmas!
댓글 수: 0
채택된 답변
Azzi Abdelmalek
2014년 12월 25일
편집: Azzi Abdelmalek
2014년 12월 25일
s='113203'
a=datenum(s,'HHMMSS')
out=datestr(out,'HH:MM:SS')
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Christmas / Winter에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!