import time into matrix and display as minutes after midnight

1 Ansicht (letzte 30 Tage)
AA
AA am 26 Okt. 2017
Beantwortet: Star Strider am 26 Okt. 2017
hi guys, I have imported an excel file into matlab. 10:00 is displayed as 0.416666666666667. I want to display this as minutes after midnight. ANy ideas?
thanks,

Akzeptierte Antwort

Star Strider
Star Strider am 26 Okt. 2017
It appears to be in fractions of a day, so multiply it by minutes in a day:
t = 0.416666666666667;
min_after_mn = t * 24*60;
min_after_mn =
600.0000

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by