How to use datenum on hourly data

2 次查看(过去 30 天)
darkgod89
darkgod89 2016-6-13
I have a csv file with the first column containing the year, 2nd month, 3rd day and 4th hour. I tried to convert it to serial date number using datenum but it didn't work as I didn't have the minutes and seconds data. Is there a way around this?

回答(1 个)

the cyclist
the cyclist 2016-6-13
You could add columns of zeros to represent minute and seconds.

类别

Help CenterFile Exchange 中查找有关 Dates and Time 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by