Azzera filtri
Azzera filtri

Change a character array to time

4 visualizzazioni (ultimi 30 giorni)
Yongmin
Yongmin il 25 Dic 2014
Commentato: Yongmin il 25 Dic 2014
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!

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 25 Dic 2014
Modificato: Azzi Abdelmalek il 25 Dic 2014
s='113203'
a=datenum(s,'HHMMSS')
out=datestr(out,'HH:MM:SS')
  1 Commento
Yongmin
Yongmin il 25 Dic 2014
Many thanks for your prompt answer. Happy Christmas!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Christmas / Winter in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by