필터 지우기
필터 지우기

What should I do with NaN

조회 수: 2 (최근 30일)
Lok Yiu To
Lok Yiu To 2016년 11월 2일
답변: Walter Roberson 2016년 11월 2일
First time being in the forum...
I have a set of EMG data (with a column of time and a column of corresponding EMG data). Unfortunately, there were missing data points during the data collection(so those data do not exist in my data set) and so I substituted those point with NaN.
Here's the problem: if I want to filter the EMG data, it will give out a column of NaN because my original vector contains NaN. So what should I substitute with the missing EMG data point instead?
Thank you

채택된 답변

Walter Roberson
Walter Roberson 2016년 11월 2일
You could interpolate the signal at the points that are NaN.
One convenient routine for that is John D'Errico's File Exchange contribution inpaint_nan

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Smoothing and Denoising에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by