1D median filtering
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
claire
el 11 de Oct. de 2011
Comentada: bruno
el 17 de Dic. de 2022
how to apply 1D median filter with 100ms window length?
0 comentarios
Respuesta aceptada
David Young
el 11 de Oct. de 2011
Assuming your data are stored as a row vector D, and the sampling interval is T ms, and you have the Image Processing Toolbox, you could do this:
windowlength = 100;
windowsize = ceil(windowlength/T);
D_filtered = medfilt2(D, [1 windowsize]);
If the data are stored as a column vector, use
D_filtered = medfilt2(D, [windowsize 1]);
instead of the final line.
1 comentario
bruno
el 17 de Dic. de 2022
I have 2 cols and 6000 rows in a mat file. How can I apply relaxed median filter? Im not able to understand how to set window and lower and upper bounds for mat file which is 2 cols and 6000rows.
Más respuestas (0)
Ver también
Categorías
Más información sobre Adaptive Filters 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!