MATLAB Answers

Filtering noisy data

19 views (last 30 days)
vsee on 17 Apr 2011
I have a mixed frequency signal with a lot of noise. I plotted the spectrum of the signal using fft and also plotted the psd of the signal using the sp tool. I don't quite see the peak of the signal in fft plot althought the psd plot shows a peak and then rolls off. I don't know if i am missing to interpret something in the fft plot? I can attach the plots but don't know how. Thanks.
vsee on 18 Apr 2011
Here is the link to the plot.

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 18 Apr 2011
What was plotted for the fft? Real, Imaginary, Magnitude ?
  1 Comment
vsee on 18 Apr 2011
It was the magnitude(log). Here is my code.
hresignal = csvread('2RH8June.csv');
time = hresignal(:, 1);
amp = hresignal(:, 2);
samp = hresignal(1:1000000, 2);
fsamp = 20*log10(abs(fft(samp)));
ps = psd(spectrum.welch,samp);

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by