- Read the excel file.
- To read the exel file use readtable.
- Convert your time into date time. Read about datetime.
- Create your required hourly time data.
- Then use interp1.
How to calculate hourly observation?
1 view (last 30 days)
Show older comments
Hi everyone,
May someone help me here ...
I have data in two columns, Hour and Minuts. I have to calculate the hourly number of observation. For example, observation among 17:30 to 18:30 and then 19:30 and so on. It's not fixed something 19:42 to 20:42 and so on for a period of 2 days. I have attached data here.
0 Comments
Accepted Answer
KSSV
on 12 Dec 2020
You can use interp1 to get what you want.
More Answers (0)
See Also
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!