Filling gaps in data points when interpolating with missing data

조회 수: 1 (최근 30일)
Soso
Soso 2021년 3월 11일
댓글: KSSV 2021년 3월 11일
I have sensor data that is logged in every 15 minutes, (96 data points per day, interpolated data). I have a lot of missing data points, and I want (when the missing data points is larger then 2 hours) to find the first missing data point and the last missing data point and replace every single data point in between with NaN.
I have tried to find the gaps in the data by using find(diff>2*60*1000) and to replace it with NaN but this will only account for one data point. I would be graetfull if somebody could help. I have attached sample data.

답변 (0개)

카테고리

Help CenterFile Exchange에서 NaNs에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by