How to convert decimal to time?
Show older comments
eg: 7.6 (7+0.6*60) = 7:36
Accepted Answer
More Answers (1)
Peter Perkins
on 13 Oct 2017
Edited: Peter Perkins
on 13 Oct 2017
This depends on what you mean by "time". Likely, the most useful thing is a duration:
>> t = hours(7.6)
t =
duration
7.6 hr
>> t.Format = 'hh:mm:ss'
t =
duration
07:36:00
Categories
Find more on Elementary Math in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!