Does anyone know to convert clock time into decimal time?
Ältere Kommentare anzeigen
Exampler of the data 845 is 8:45 and I want it 875 ( decimal time).
Antworten (2)
Star Strider
am 8 Sep. 2016
See if this does what you want:
t_d = @(t) (fix(t/100) + rem(t,100)/60)*100; % Anonymous Function
t_hm = 845; % Time To Be ‘Converted’
out = t_d(t_hm) % Desired Result
out =
875
George
am 8 Sep. 2016
0 Stimmen
Kategorien
Mehr zu Programming finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!