Filtering the data with fft

48 visualizaciones (últimos 30 días)
도연 원
도연 원 el 30 de Nov. de 2021
Comentada: 도연 원 el 3 de Dic. de 2021
Hello community, I hope someone would have a clear answer for me...
First, I watched this video ( https://www.youtube.com/watch?v=VFt3UVw7VrE ,Designing Digital Filters with MATLAB) about designing filter with Matlab. This video deals with FFT, and LPF, HPF etc. to delete the noise in the data.
In this video, when they FFT their signals, it is very clear that which frequency should be cut-off. See below.
So motivated from this video, I plan to 1. FFT my signal, 2. Find the frequency to cut-off, 3. and get the data(or a plot) without noises.
Look at the my data. This data has 88Hz sampling frequency, and has a noise on the signal. Obvously it is a sine wave with noises, so final goal is to get the sine curve without noise, obviously.
To eliminate the noises so I did the fft plot.
However plot shows kind of impulses on 10.446Hz, 76.6038Hz, which is not really similar like Matlab video example. They have some bands to cut off, not the impulse.
So I want to ask;
Am I approaching in right way?
Is that the impulse making the noises?
How can I cut them off?
Thank you very much.

Respuesta aceptada

Hiro Yoshino
Hiro Yoshino el 30 de Nov. de 2021
(1) Am I approaching in right way?
It seems not.
I suppose you have ~ 90 sample points and just plot the absolute values of fft(y).
The left half of the "plot" corresponds to the negative frequency, i.e., it is just the phase that is different from the right hand side.
The two impulses correspond to the frequency of the sine wave (positive and negative).
If you have no idea about negative frequency, you should hit the book to learn the basics of FFT.
(2) Is that the impulse making the noises?
Threfore no, it is not.
What kind of noise did you add? If it were a Gaussian, the shape of it in the frequency domain is also Gaussian.
(3) How can I cut them off?
In Signal processing manner, you should apply filter(s) to it.
For simplicity, you can just remove the certain elements from the signal directly. This effectively applies a rectangle shaped filter, which causes some other side effects.
  1 comentario
도연 원
도연 원 el 3 de Dic. de 2021
Thanks.
Now I am looking into some books related to FFTs.

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by