亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? psd.m

?? Kalman Filtering Theory and Practice, Using MATLAB
?? M
字號:
function [Pxx, Pxxc, f] = psd(varargin)
%PSD Power Spectral Density estimate.
%   Pxx = PSD(X,NFFT,Fs,WINDOW) estimates the Power Spectral Density of 
%   signal vector X using Welch's averaged periodogram method.  X is 
%   divided into overlapping sections, each of which is detrended, then
%   windowed by the WINDOW parameter, then zero-padded to length NFFT.  
%   The magnitude squared of the length NFFT DFTs of the sections are 
%   averaged to form Pxx.  Pxx is length NFFT/2+1 for NFFT even, (NFFT+1)/2
%   for NFFT odd, or NFFT if the signal X is complex.  If you specify a 
%   scalar for WINDOW, a Hanning window of that length is used.  Fs is the 
%   sampling frequency which doesn't affect the spectrum estimate but is 
%   used for scaling of plots.
%
%   [Pxx,F] = PSD(X,NFFT,Fs,WINDOW,NOVERLAP) returns a vector of frequen-
%   cies the same size as Pxx at which the PSD is estimated, and overlaps
%   the sections of X by NOVERLAP samples.
%
%   [Pxx, Pxxc, F] = PSD(X,NFFT,Fs,WINDOW,NOVERLAP,P) where P is a scalar
%   between 0 and 1, returns the P*100% confidence interval for Pxx.
%
%   PSD(X,...,DFLAG), where DFLAG can be 'linear', 'mean' or 'none', 
%   specifies a detrending mode for the prewindowed sections of X.
%   DFLAG can take the place of any parameter in the parameter list
%   (besides X) as long as it is last, e.g. PSD(X,'mean');
%   
%   PSD with no output arguments plots the PSD in the current figure window,
%   with confidence intervals if you provide the P parameter.
%
%   The default values for the parameters are NFFT = 256 (or LENGTH(X),
%   whichever is smaller), NOVERLAP = 0, WINDOW = HANNING(NFFT), Fs = 2, 
%   P = .95, and DFLAG = 'none'.  You can obtain a default parameter by 
%   leaving it off or inserting an empty matrix [], e.g. PSD(X,[],10000).
%
%   See also CSD, COHERE, TFE, PMEM, PMTM, PMUSIC.
%   ETFE, SPA, and ARX in the Identification Toolbox.

%   Author(s): T. Krauss, 3-26-93
%   Copyright (c) 1988-98 by The MathWorks, Inc.
%   $Revision: 1.27 $  $Date: 1997/12/02 18:37:07 $

%   The units on the power spectra Pxx and Pyy are such that, using
%   Parseval's theorem: 
%
%        SUM(Pxx)/LENGTH(Pxx) = SUM(X.^2)/LENGTH(X) = COV(X)
%
%   The RMS value of the signal is the square root of this.
%   If the input signal is in Volts as a function of time, then
%   the units on Pxx are Volts^2*seconds = Volt^2/Hz.
%
%   Here are the covariance, RMS, and spectral amplitude values of
%   some common functions:
%         Function   Cov=SUM(Pxx)/LENGTH(Pxx)   RMS        Pxx
%         a*sin(w*t)        a^2/2            a/sqrt(2)   a^2*LENGTH(Pxx)/4
%Normal:  a*rand(t)         a^2              a           a^2
%Uniform: a*rand(t)         a^2/12           a/sqrt(12)  a^2/12
%   
%   For example, a pure sine wave with amplitude A has an RMS value
%   of A/sqrt(2), so A = SQRT(2*SUM(Pxx)/LENGTH(Pxx)).
%
%   See Page 556, A.V. Oppenheim and R.W. Schafer, Digital Signal
%   Processing, Prentice-Hall, 1975.

error(nargchk(1,7,nargin))
x = varargin{1};
[msg,nfft,Fs,window,noverlap,p,dflag]=psdchk(varargin(2:end),x);
error(msg)

% compute PSD
window = window(:);
n = length(x);		% Number of data points
nwind = length(window); % length of window
if n < nwind    % zero-pad x if it has length less than the window length
    x(nwind)=0;  n=nwind;
end
x = x(:);		% Make sure x is a column vector
                        % this line must be AFTER the zero-padding in
                        % case x is a scalar
k = fix((n-noverlap)/(nwind-noverlap));	% Number of windows
					% (k = fix(n/nwind) for noverlap=0)

if 0
    disp(sprintf('   x        = (length %g)',length(x)))
    disp(sprintf('   y        = (length %g)',length(y)))
    disp(sprintf('   nfft     = %g',nfft))
    disp(sprintf('   Fs       = %g',Fs))
    disp(sprintf('   window   = (length %g)',length(window)))
    disp(sprintf('   noverlap = %g',noverlap))
    if ~isempty(p)
        disp(sprintf('   p        = %g',p))
    else
        disp('   p        = undefined')
    end
    disp(sprintf('   dflag    = ''%s''',dflag))
    disp('   --------')
    disp(sprintf('   k        = %g',k))
end

index = 1:nwind;
KMU = k*norm(window)^2;	% Normalizing scale factor ==> asymptotically unbiased
% KMU = k*sum(window)^2;% alt. Nrmlzng scale factor ==> peaks are about right

Spec = zeros(nfft,1); Spec2 = zeros(nfft,1);
for i=1:k
    if strcmp(dflag,'none')
        xw = window.*(x(index));
    elseif strcmp(dflag,'linear')
        xw = window.*detrend(x(index));
    else
        xw = window.*detrend(x(index),0);
    end
    index = index + (nwind - noverlap);
    Xx = abs(fft(xw,nfft)).^2;
    Spec = Spec + Xx;
    Spec2 = Spec2 + abs(Xx).^2;
end

% Select first half
if ~any(any(imag(x)~=0)),   % if x is not complex
    if rem(nfft,2),    % nfft odd
        select = (1:(nfft+1)/2)';
    else
        select = (1:nfft/2+1)';
    end
    Spec = Spec(select);
    Spec2 = Spec2(select);
%    Spec = 4*Spec(select);     % double the signal content - essentially
% folding over the negative frequencies onto the positive and adding.
%    Spec2 = 16*Spec2(select);
else
    select = (1:nfft)';
end
freq_vector = (select - 1)*Fs/nfft;

% find confidence interval if needed
if (nargout == 3)|((nargout == 0)&~isempty(p)),
    if isempty(p),
        p = .95;    % default
    end
    % Confidence interval from Kay, p. 76, eqn 4.16:
    % (first column is lower edge of conf int., 2nd col is upper edge)
    confid = Spec*chi2conf(p,k)/KMU;

    if noverlap > 0
        disp('Warning: confidence intervals inaccurate for NOVERLAP > 0.')
    end
end

Spec = Spec*(1/KMU);   % normalize

% set up output parameters
if (nargout == 3),
   Pxx = Spec;
   Pxxc = confid;
   f = freq_vector;
elseif (nargout == 2),
   Pxx = Spec;
   Pxxc = freq_vector;
elseif (nargout == 1),
   Pxx = Spec;
elseif (nargout == 0),
   if ~isempty(p),
       P = [Spec confid];
   else
       P = Spec;
   end
   newplot;
   plot(freq_vector,10*log10(abs(P))), grid on
   xlabel('Frequency'), ylabel('Power Spectrum Magnitude (dB)');
end

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
三级在线观看一区二区| 日本高清无吗v一区| 丰满少妇久久久久久久| 色欧美88888久久久久久影院| 欧美一区二区三区在线看| 国产精品午夜在线| 91免费国产在线观看| 日韩欧美在线综合网| 亚洲欧美视频在线观看视频| 国产一区二区三区视频在线播放| 欧美午夜精品久久久久久孕妇| 国产日产欧产精品推荐色| 日韩在线卡一卡二| 日本电影亚洲天堂一区| 国产精品成人免费| 国产精品18久久久久久久久 | 欧美电影影音先锋| 国产精品国产三级国产三级人妇| 久久66热偷产精品| 在线综合+亚洲+欧美中文字幕| 亚洲视频一区二区免费在线观看| 国产一二精品视频| 精品sm捆绑视频| 日本欧美在线看| 欧美久久久久免费| 亚洲一区二区三区精品在线| 91网站在线播放| 18涩涩午夜精品.www| 成人一级视频在线观看| 国产精品人人做人人爽人人添 | 精品少妇一区二区| 美国十次综合导航| 日韩一区二区免费视频| 日本特黄久久久高潮| 在线播放中文一区| 日韩电影在线观看电影| 欧美一区中文字幕| 免费成人美女在线观看| 日韩色视频在线观看| 久久精品噜噜噜成人88aⅴ| 欧美电影免费观看高清完整版在线观看| 午夜精品aaa| 日韩一区二区高清| 国产伦精品一区二区三区视频青涩 | 日本人妖一区二区| 日韩精品中文字幕一区二区三区 | 视频一区二区不卡| 欧美电影免费观看高清完整版在线观看 | 国产一区在线观看视频| 久久久久久久久久久久久久久99 | 国产精品久久久久久久久免费丝袜| 国产成人无遮挡在线视频| 中文字幕一区二区5566日韩| 日本福利一区二区| 日本视频中文字幕一区二区三区| 日韩美女视频一区二区在线观看| 国产精品1区二区.| 尤物av一区二区| 日韩一区二区精品| 成人精品国产福利| 午夜精品久久久| 国产日韩欧美不卡| 色婷婷综合激情| 欧美一区二区视频免费观看| 自拍偷在线精品自拍偷无码专区| 风流少妇一区二区| 亚洲精品国产无套在线观| 欧美日韩一区二区在线观看视频| 免费日本视频一区| 国产精品美女一区二区| 精品1区2区3区| 国产盗摄精品一区二区三区在线 | 这里只有精品电影| 国产成人无遮挡在线视频| 亚洲一区二区在线免费观看视频 | 国产一本一道久久香蕉| 亚洲精品伦理在线| 欧美精品一区二区三| 日本高清不卡视频| 国产制服丝袜一区| 亚洲成人av资源| 久久日韩粉嫩一区二区三区| 欧美在线视频全部完| 国产成人免费视| 另类调教123区 | 中文字幕日韩一区二区| 欧美丰满少妇xxxbbb| 99re6这里只有精品视频在线观看| 亚洲成av人片在线| 亚洲欧美日本韩国| 国产清纯美女被跳蛋高潮一区二区久久w | 91精品欧美福利在线观看| 成人免费视频app| 久久国产精品色婷婷| 一区二区三区不卡视频在线观看 | 国产a精品视频| 蜜臀av亚洲一区中文字幕| 一区二区在线电影| 久久久久一区二区三区四区| 欧美一区二区三区在线视频 | 成人免费视频网站在线观看| 精品亚洲免费视频| 琪琪一区二区三区| 午夜激情一区二区| 尤物av一区二区| 亚洲久草在线视频| 中文字幕在线不卡国产视频| 欧美韩国日本综合| 国产色综合久久| 国产午夜亚洲精品理论片色戒 | 欧美日韩国产一级| 欧美三级在线播放| 欧美日韩精品是欧美日韩精品| 日本高清免费不卡视频| 一本久久精品一区二区| 色综合网色综合| 色网站国产精品| 在线中文字幕一区二区| 欧美午夜一区二区三区| 欧美三级三级三级爽爽爽| 欧美性大战久久久久久久| 国产一区视频导航| 国产**成人网毛片九色| 国产成+人+日韩+欧美+亚洲| 国产成人免费9x9x人网站视频| 成人毛片视频在线观看| 色综合视频在线观看| 欧美在线一区二区三区| 91精品国产91久久久久久最新毛片| 制服丝袜中文字幕一区| 日韩免费看的电影| 久久亚洲一级片| 国产精品乱子久久久久| 亚洲一区二区三区四区在线观看| 午夜视频久久久久久| 蜜臀va亚洲va欧美va天堂| 国产乱妇无码大片在线观看| 成人av午夜电影| 欧美午夜不卡视频| 欧美一区三区二区| 国产香蕉久久精品综合网| 亚洲欧美精品午睡沙发| 日日嗨av一区二区三区四区| 国产一区二区在线看| 99久久精品免费看| 欧美日本精品一区二区三区| 2023国产精品自拍| 日韩美女视频19| 日韩av中文在线观看| 大胆亚洲人体视频| 欧美女孩性生活视频| 久久久亚洲精品石原莉奈| 亚洲色图视频免费播放| 免费观看一级特黄欧美大片| 高清成人免费视频| 欧美日韩和欧美的一区二区| 精品免费一区二区三区| 亚洲欧洲制服丝袜| 久久99最新地址| 色综合网色综合| 久久日韩粉嫩一区二区三区| 亚洲国产aⅴ天堂久久| 精品夜夜嗨av一区二区三区| 91免费版pro下载短视频| 欧美xxx久久| 五月婷婷综合在线| 不卡av在线免费观看| 精品久久久三级丝袜| 亚洲综合免费观看高清在线观看| 国产精品亚洲第一区在线暖暖韩国| 欧美午夜在线一二页| 中文字幕欧美一| 国产精品自在在线| 欧美日韩精品二区第二页| 国产精品美女一区二区| 韩国三级中文字幕hd久久精品| 欧美私人免费视频| 亚洲欧美电影一区二区| 国产宾馆实践打屁股91| 精品久久久久99| 丝袜美腿高跟呻吟高潮一区| 色综合久久久久久久久| 国产精品久久久久永久免费观看 | 久久久综合精品| 日韩精品亚洲一区二区三区免费| 一本一本久久a久久精品综合麻豆| 国产色婷婷亚洲99精品小说| 麻豆国产一区二区| 日韩一区二区免费在线观看| 日韩精品一卡二卡三卡四卡无卡| 欧美日韩激情一区二区| 亚洲一区二区三区在线看| 色丁香久综合在线久综合在线观看| 国产精品沙发午睡系列990531| 国产福利不卡视频| 久久只精品国产| 国产成人夜色高潮福利影视| 国产日韩在线不卡| 国产成人精品综合在线观看| 国产精品视频你懂的|