medfilt1omitnan error
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
0 comentarios
Respuestas (1)
Greg Dionne
el 28 de Jul. de 2016
Editada: Greg Dionne
el 28 de Jul. de 2016
You might have an older copy of the Signal Processing Toolbox. NaN behavior was added in R2015b.
0 comentarios
Ver también
Categorías
Más información sobre Digital Filtering en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!