Effacer les filtres
Effacer les filtres

Converting time format from hh mm ss to minutes or seconds

8 vues (au cours des 30 derniers jours)
Tarek Zaqout
Tarek Zaqout le 17 Mar 2019
I imported a time series in the format of HH:MM:SS from excel to matlab but it appeared as 0.4532343954 or something. How can I convert it to minutes or seconds starting zero.
The time data are in 5 seconds intervals.

Réponse acceptée

Star Strider
Star Strider le 17 Mar 2019
Try this:
Tv = datetime(0.4532343954, 'Format','HH:mm:SS', 'ConvertFrom','excel')
Tv =
datetime
10:52:45

Plus de réponses (0)

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by