Clear Filters
Clear Filters

How to use datenum on hourly data

1 view (last 30 days)
darkgod89
darkgod89 on 13 Jun 2016
Answered: the cyclist on 13 Jun 2016
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?

Answers (1)

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

Categories

Find more on Dates and Time in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!