Borrar filtros
Borrar filtros

How to smooth using Savitzky-Golay Filtering

3 visualizaciones (últimos 30 días)
Muhsin
Muhsin el 1 de Mzo. de 2018
Comentada: Muhsin el 1 de Mzo. de 2018
Hello, I need your help to smooth the attached file. It is a two-column txt file. The first column is the frequency and the second is the amplitude. I would like to smooth the second column. Any kind of help is appreciated. Thank you.

Respuestas (1)

John D'Errico
John D'Errico el 1 de Mzo. de 2018
Why not look on the file exchange? There are multiple tools there that claim to do Savitsky-Golay.
Even better, is to read the help/doc for smooth. It provides Savitsky-Golay as one option.
doc smooth
If you are asking for someone to write code for you, teaching you how to do Savistsky-Golay and providing complete code for it, that is arguably beyond the scope of Answers. (I for one won't do that.) Instead, you can find pseudo-code for it online. Then spend some time learning to do it in MATLAB from the algorithm.
  1 comentario
Muhsin
Muhsin el 1 de Mzo. de 2018
I am not looking for someone to write the code. I do not the concept of available tools which smooths a function. My case is different and I just cannot implement to my case. Thanks for your informative comment by the way

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by