Change a character array to time
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Azzi Abdelmalek
le 25 Déc 2014
Modifié(e) : Azzi Abdelmalek
le 25 Déc 2014
s='113203'
a=datenum(s,'HHMMSS')
out=datestr(out,'HH:MM:SS')
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Christmas / Winter dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!