MATLAB Answers

how can i filter my signal if the fft looks like this?

2 ビュー (過去 30 日間)
K G
K G 2019 年 8 月 9 日
回答済み: Kaashyap Pappu 2019 年 8 月 12 日
I am looking for the best filter to filter my signal.

  0 件のコメント

サインインしてコメントする。

採用された回答

Kaashyap Pappu
Kaashyap Pappu 2019 年 8 月 12 日
For plotting the FFT output, the x-axis must be defined in a vector. Ideally this vector is defined as follows:
x = (0: 1/nFFT : (1 - 1/nFFT)) * samplingFrequency;
plot(x,y)
Where nFFt is the number of FFT points, y is the FFT output and x is the vector for the x-axis. Alternatively, you can omit the multiplication with samplingFrequency if you want to use normalized frequency for the x-axis. Note that the “fft” function provides a 2-sided spectrum. To obtain single-sided spectrum, refer to the documentation here.
Following this, you can use the Filter Designer App to design the required filter. This is elaborated here. Design the filter based on the parameters from the frequency plot, and import the filter coefficients into the MATLAB workspace to use with the “filter” function elaborated here.
Additionally, you can also use the “pwelch” function for faster frequency domain analysis. This is elaborated here. The spectrum is single-sided in this case.

  0 件のコメント

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by