- 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 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
KSSV
2020-12-12
You can use interp1 to get what you want.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dates and Time 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!