Selecting certain timetable data based on the date they occur and replacing the corresponding variable at that time with nan

1 view (last 30 days)
Lawrence Calverley
Lawrence Calverley on 14 Mar 2021
Answered: Rishik Ramena on 18 Mar 2021
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

Answers (1)

Rishik Ramena
Rishik Ramena on 18 Mar 2021
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.

Community Treasure Hunt

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

Start Hunting!

Translated by