I just realized that the power estimate from xt was actually energy, and that I haven't accounted for time. So let me rework that and come back if there's still some problem.
Power spectrum with pwelch & question about Parseval's
3 次查看(过去 30 天)
显示 更早的评论
I have xt, a complex sequence of size length N. I use the pwelch function to compute a PSD, using
[yf, ys] = pwelch(xt, w, 0, fsize, fs, 'centered')
fs is the sampling rate. fsize is the fftsize, which is set such that I have some 300 averages or so (say N/300). w is some window function with the same number of points as fsize. Freq resolution on the spectrum is fs/fsize = fstep, say.
I estimate power in the spectrum as sum(ys)*fstep. I want to estimate the power in xt, and expect to find equivalence (by Parseval's relationship). I estimate this as: sum(abs(xt).^2). The two powers are not equal, and bear no sensible relationship to each other either. I have tried 7 different sequences for xt. Power(xt) > Power(ys) by factors ranging from 216 to 1670.
Further, when I upsample xt by a factor of 4, I find that sum(abs(xt_upsampled).^2) is 4 times greater than sum(abs(xt).^2). This is using the resample command. I thought resample was supposed to normalize the power. I am now very uncertain how to estimate power in the time-domain. Any suggestions? Does pwelch do something that invalidates Parseval's or am I wrongly applying it?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Estimation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!