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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Spectral Estimation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by