Computing confidence level in spectrum (after fft).
6 次查看(过去 30 天)
显示 更早的评论
Hello,
I would like to compute confidence levels after I did a fft. What are the approaches? I tried:
1) to compute the background of the spectrum with a quadratic fit (in log-Power-spec). Afterwards I want to add the confidence interval (calculated with the variance). - Here the fit looks quite bad.
2) to use pwelch. With [pxx,f_C,pxxc] = pwelch(x,[],[],fs,'ConfidenceLevel',0.95) I get some errors:
Error using zeros
Size inputs must be integers.
Error in welch (line 81)
Sxx = zeros(nFreqs,size(x,2),class(x)); %#ok<*ZEROLIKE>
Error in pwelch (line 158)
[varargout{1:nargout}] = welch(x,esttype,varargin{:});
Error in preproc_ngk (line 701)
[pxx,f_C,pxxc] = pwelch(x,hamming(L),noverlap,fs,'ConfidenceLevel',0.95);
Maybe you know a different way to solve the problem? Or maybe there is a mistake with pwelch.
Thanks, Jonah
2 个评论
Jie Zhang
2021-6-2
I have the same question. Could you please tell me how you solved it? Thanks a lot.
回答(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!