import time into matrix and display as minutes after midnight
1 次查看(过去 30 天)
显示 更早的评论
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,
0 个评论
采纳的回答
Star Strider
2017-10-26
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
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!