medfilt1omitnan error

조회 수: 2 (최근 30일)
Mikes1098
Mikes1098 2016년 3월 7일
편집: Greg Dionne 2016년 7월 28일
Hi all,
I am trying to apply medfilt1 to a dataset with blank cells. The blank cells simply cause breaks in the filtered curve. I am trying to apply 'omitnan' to get it to ignore the blank but I get the following error:
Input arguments must be 'double'.
I double checked the class and it is indeed a double -- so I am not sure what else to change. Any ideas?
y=VarName12;
class(y)
ymed=medfilt1(y,50,'omitnan');
I attached a sample data set.
Thanks

답변 (1개)

Greg Dionne
Greg Dionne 2016년 7월 28일
편집: Greg Dionne 2016년 7월 28일
You might have an older copy of the Signal Processing Toolbox. NaN behavior was added in R2015b.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by