import time into matrix and display as minutes after midnight

1 回表示 (過去 30 日間)
AA
AA 2017 年 10 月 26 日
回答済み: Star Strider 2017 年 10 月 26 日
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,

採用された回答

Star Strider
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 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by