How to convert time from decimal to HH:MM format in plot?

1 回表示 (過去 30 日間)
Adeline
Adeline 2016 年 8 月 28 日
回答済み: Star Strider 2016 年 8 月 28 日
I'm reading from Excel file and in Excel the time is showing in the correct HH:MM format but when I imported it to MATLAB it is showing in decimal. I want to plot a figure with time in the HH:MM format and not decimal. I'm using MATLAB R2013a.

回答 (1 件)

Star Strider
Star Strider 2016 年 8 月 28 日
If you have R2014b or later, consider using a datetime object. Otherwise, consider using the datetick function.

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by