필터 지우기
필터 지우기

Change a character array to time

조회 수: 4 (최근 30일)
Yongmin
Yongmin 2014년 12월 25일
댓글: Yongmin 2014년 12월 25일
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!

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 12월 25일
편집: Azzi Abdelmalek 2014년 12월 25일
s='113203'
a=datenum(s,'HHMMSS')
out=datestr(out,'HH:MM:SS')
  댓글 수: 1
Yongmin
Yongmin 2014년 12월 25일
Many thanks for your prompt answer. Happy Christmas!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Christmas / Winter에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by