Selecting certain timetable data based on the date they occur and replacing the corresponding variable at that time with nan
1 次查看(过去 30 天)
显示 更早的评论
I have a large timetable containing sea level heights which have been taken across many years. In the data there are areas where the tide gauges have obviously had some kind of error in their measurements. I have already removed the bulk of these outliers using the rmoutliers function and filled them with NaNs but there still remain areas in my data which don't look right. I have been through the data and recorded the dates at which the remaining outliers occured at. I should now like to replace the sea level data that occured at these dates with NaNs. How might I be able to go about this?
Many thanks
0 个评论
回答(1 个)
Rishik Ramena
2021-3-18
You can index the timetables using the timestamp. You can also select a period of time as the index. Have a look at the examples here to help you clean your data.
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!