picking the signal from PSD
2 次查看(过去 30 天)
显示 更早的评论
i have a signal and it is corrupted with noise !!! so how can i separate the signal frequency component from the noise using PSD .........i already know the main theme but the thing that is confusing is ...with the plotting of PSD ....how does it works ??i mean the plot(f,pxx)....how the f along the x axis is defined here can anyone help me out of this ......for ur kind information um a newbie in DSP....so pls explain me as easily as possible!
0 个评论
采纳的回答
Wayne King
2012-5-18
The PSD shows how the power in the signal is distributed as a function of frequency. The x-axis, f, are the frequencies. If you use the sampling frequency as an input to the PSD routine you are using, then f is in cycles/sec.
How you separate noise from signal depends on what your signal and what your noise are like. If your signal is sinusoidal, it shows up as peaks in the PSD estimate.
更多回答(1 个)
Wayne King
2012-5-18
If you specify a sampling frequency, then f is in increments of Fs/N where Fs is the sampling frequency and N is the length of the signal
Fs = 1000;
t = 0:0.001:1-0.001;
x = cos(2*pi*100*t)+randn(size(t));
[Pxx,F] = periodogram(x,[],length(x),Fs);
Notice that in this case, Fs = 1000 and N = 1000 also, so we would expect the frequency vector, F, to increment by Fs/N=1
If you enter
F(2)-F(1)
Or more generally
plot(diff(F))
You'll see that is the case.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parametric Spectral Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!