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!