Indexing a timetable using time
显示 更早的评论
Dear
I have a timetable in a range of many days in seconds, see figure below. I need to indexing this timetable in a range of hour and minutes for all range of dates. To do that i used this code:
Dates_ind = Universo_MidPrice.DateTime >=datetime('10:00:00.000',"Format","HH:mm:ss.SSS") & Universo_MidPrice.DateTime < datetime('16:50:00.000',"Format","HH:mm:ss.SSS");
After that, I will use this logical vector to indexing the timetable. This did not work. The problem is the absence of date in the datetime function once this code works if you include only a range of dates. However, the aim is indexing all dates in the range of hours and minutes. Any help will be appreciate.

采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!