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

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

?? spectrum.m

?? 老外寫的小波變換的工具箱
?? M
字號:
function [Spec,f] = spectrum(varargin)%SPECTRUM Power spectrum estimate of one or two data sequences.%   SPECTRUM has been replaced by SPECTRUM.WELCH.  SPECTRUM still works but%   may be removed in the future. Use SPECTRUM.WELCH (or its functional%   form PWELCH) instead. Type help SPECTRUM/WELCH for details.%%   See also SPECTRUM/PSD, SPECTRUM/MSSPECTRUM, SPECTRUM/PERIODOGRAM.%   Author(s): J.N. Little, 7-9-86%   	   C. Denham, 4-25-88, revised%   	   L. Shure, 12-20-88, revised%   	   J.N. Little, 8-31-89, revised %   	   L. Shure, 8-11-92, revised %   	   T. Krauss, 4-15-93, revised%   Copyright 1988-2004 The MathWorks, Inc.%   $Revision: 1.6.4.3 $  $Date: 2004/10/18 21:09:32 $%   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,8,nargin))[msg,x,y,nfft,noverlap,window,Fs,p,dflag]=specchk(varargin);error(msg)if isempty(p),	p = .95;   % default confidence interval even if not asked forendn = length(x);		% Number of data pointsnwind = length(window);if n < nwind    % zero-pad x (and y) if length less than the window length    x(nwind)=0;  n=nwind;    if ~isempty(y), y(nwind)=0;  endendx = x(:);		% Make sure x and y are column vectorsy = y(:);k = fix((n-noverlap)/(nwind-noverlap));	% Number of windows					% (k = fix(n/nwind) for noverlap=0)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 rightif (isempty(y))	% Single sequence case.	Pxx = zeros(nfft,1); Pxx2 = zeros(nfft,1);	for i=1:k                if strcmp(dflag,'linear')                    xw = window.*detrend(x(index));                elseif strcmp(dflag,'none')                    xw = window.*(x(index));                else                    xw = window.*detrend(x(index),0);                end		index = index + (nwind - noverlap);		Xx = abs(fft(xw,nfft)).^2;		Pxx = Pxx + Xx;		Pxx2 = Pxx2 + abs(Xx).^2;	end	% Select first half	if ~any(any(imag(x)~=0)),   % if x and y are not complex		if rem(nfft,2),    % nfft odd			select = 1:(nfft+1)/2;		else			select = 1:nfft/2+1;   % include DC AND Nyquist		end	else		select = 1:nfft;	end	Pxx = Pxx(select);	Pxx2 = Pxx2(select);	cPxx = zeros(size(Pxx));	if k > 1		c = (k.*Pxx2-abs(Pxx).^2)./(k-1);		c = max(c,zeros(size(Pxx)));		cPxx = sqrt(c);	end	ff = sqrt(2)*erfinv(p);  % Equal-tails.	Pxx = Pxx/KMU;	Pxxc = ff.*cPxx/KMU;	P = [Pxx Pxxc];else	Pxx = zeros(nfft,1); % Dual sequence case.	Pyy = Pxx; Pxy = Pxx; Pxx2 = Pxx; Pyy2 = Pxx; Pxy2 = Pxx;	for i=1:k                if strcmp(dflag,'linear')                    xw = window.*detrend(x(index));		    yw = window.*detrend(y(index));                elseif strcmp(dflag,'none')                    xw = window.*(x(index));		    yw = window.*(y(index));                else                    xw = window.*detrend(x(index),0);		    yw = window.*detrend(y(index),0);                end		index = index + (nwind - noverlap);		Xx = fft(xw,nfft);		Yy = fft(yw,nfft);		Yy2 = abs(Yy).^2;		Xx2 = abs(Xx).^2;		Xy  = Yy .* conj(Xx);		Pxx = Pxx + Xx2;		Pyy = Pyy + Yy2;		Pxy = Pxy + Xy;		Pxx2 = Pxx2 + abs(Xx2).^2;		Pyy2 = Pyy2 + abs(Yy2).^2;		Pxy2 = Pxy2 + Xy .* conj(Xy);	end	% Select first half	if ~any(any(imag([x y])~=0)),   % if x and y are not complex		if rem(nfft,2),    % nfft odd			select = 1:(nfft+1)/2;		else			select = 1:nfft/2+1;   % include DC AND Nyquist		end	else		select = 1:nfft;	end	Pxx = Pxx(select);	Pyy = Pyy(select);	Pxy = Pxy(select);	Pxx2 = Pxx2(select);	Pyy2 = Pyy2(select);	Pxy2 = Pxy2(select);		cPxx = zeros(size(Pxx));	cPyy = cPxx;	cPxy = cPxx;	if k > 1   		c = max((k.*Pxx2-abs(Pxx).^2)./(k-1),zeros(size(Pxx)));   		cPxx = sqrt(c);   		c = max((k.*Pyy2-abs(Pyy).^2)./(k-1),zeros(size(Pxx)));   		cPyy = sqrt(c);   		c = max((k.*Pxy2-abs(Pxy).^2)./(k-1),zeros(size(Pxx)));   		cPxy = sqrt(c);	end	Txy = Pxy./Pxx;	Cxy = (abs(Pxy).^2)./(Pxx.*Pyy);		ff = sqrt(2)*erfinv(p);  % Equal-tails.	Pxx = Pxx/KMU;	Pyy = Pyy/KMU;	Pxy = Pxy/KMU;	Pxxc = ff.*cPxx/KMU;	Pxyc = ff.*cPxy/KMU;	Pyyc = ff.*cPyy/KMU;	P = [Pxx Pyy Pxy Txy Cxy Pxxc Pyyc Pxyc];endfreq_vector = (select - 1)'*Fs/nfft;if nargout == 0,   % do plots        newplot;	c = [max(Pxx-Pxxc,0)  Pxx+Pxxc];	c = c.*(c>0);	semilogy(freq_vector,Pxx,freq_vector,c(:,1),'--',...		freq_vector,c(:,2),'--');	title('Pxx - X Power Spectral Density')	xlabel('Frequency')	if (isempty(y)),   % single sequence case		return	end	pause        newplot;	c = [max(Pyy-Pyyc,0)  Pyy+Pyyc];	c = c.*(c>0);	semilogy(freq_vector,Pyy,freq_vector,c(:,1),'--',...		freq_vector,c(:,2),'--');	title('Pyy - Y Power Spectral Density')	xlabel('Frequency')	pause        newplot;	semilogy(freq_vector,abs(Txy));	title('Txy - Transfer function magnitude')	xlabel('Frequency')	pause        newplot;	plot(freq_vector,180/pi*angle(Txy)), ...	title('Txy - Transfer function phase')	xlabel('Frequency')	pause        newplot;	plot(freq_vector,Cxy); 	title('Cxy - Coherence') 	xlabel('Frequency')elseif nargout ==1, 	Spec = P;elseif nargout ==2, 	Spec = P;	f = freq_vector;endfunction [msg,x,y,nfft,noverlap,window,Fs,p,dflag] = specchk(P)%SPECCHK Helper function for SPECTRUM%   SPECCHK(P) takes the cell array P and uses each cell as %   an input argument.  Assumes P has between 1 and 7 elements.%   Author(s): T. Krauss, 4-6-93msg = [];if length(P{1})<=1    msg = 'Input data must be a vector, not a scalar.';    x = [];    y = [];elseif (length(P)>1),    if (all(size(P{1})==size(P{2})) && (length(P{1})>1) ) || ...       length(P{2})>1,   % 0ne signal or 2 present?        % two signals, x and y, present        x = P{1}; y = P{2};         % shift parameters one left        P(1) = [];    else         % only one signal, x, present        x = P{1}; y = [];     endelse  % length(P) == 1    % only one signal, x, present    x = P{1}; y = []; end% now x and y are defined; let's get the restif length(P) == 1    nfft = min(length(x),256);    window = hanning(nfft);    noverlap = 0;    Fs = 2;    p = [];    dflag = 'linear';elseif length(P) == 2    if isempty(P{2}),    dflag = 'linear'; nfft = min(length(x),256);     elseif ischar(P{2}), dflag = P{2};     nfft = min(length(x),256);     else              dflag = 'linear'; nfft = P{2};   end    window = hanning(nfft);    noverlap = 0;    Fs = 2;    p = [];elseif length(P) == 3    if isempty(P{2}), nfft = min(length(x),256); else nfft=P{2};     end    if isempty(P{3}),    dflag = 'linear'; noverlap = 0;    elseif ischar(P{3}), dflag = P{3};     noverlap = 0;    else              dflag = 'linear'; noverlap = P{3}; end    window = hanning(nfft);    Fs = 2;    p = [];elseif length(P) == 4    if isempty(P{2}), nfft = min(length(x),256); else nfft=P{2};     end    if ischar(P{4})        dflag = P{4};        window = hanning(nfft);    else        dflag = 'linear';        window = P{4};  window = window(:);   % force window to be a column        if length(window) == 1, window = hanning(window); end        if isempty(window), window = hanning(nfft); end    end    if isempty(P{3}), noverlap = 0;  else noverlap=P{3}; end    Fs = 2;    p = [];elseif length(P) == 5    if isempty(P{2}), nfft = min(length(x),256); else nfft=P{2};     end    window = P{4};  window = window(:);   % force window to be a column    if length(window) == 1, window = hanning(window); end    if isempty(window), window = hanning(nfft); end    if isempty(P{3}), noverlap = 0;  else noverlap=P{3}; end    if ischar(P{5})        dflag = P{5};        Fs = 2;    else        dflag = 'linear';        if isempty(P{5}), Fs = 2; else Fs = P{5}; end    end    p = [];elseif length(P) == 6    if isempty(P{2}), nfft = min(length(x),256); else nfft=P{2};     end    window = P{4};  window = window(:);   % force window to be a column    if length(window) == 1, window = hanning(window); end    if isempty(window), window = hanning(nfft); end    if isempty(P{3}), noverlap = 0;  else noverlap=P{3}; end    if isempty(P{5}), Fs = 2;     else    Fs = P{5}; end    if ischar(P{6})        dflag = P{6};        p = [];    else        dflag = 'linear';        if isempty(P{6}), p = .95;    else    p = P{6}; end    endelseif length(P) == 7    if isempty(P{2}), nfft = min(length(x),256); else nfft=P{2};     end    window = P{4};  window = window(:);   % force window to be a column    if length(window) == 1, window = hanning(window); end    if isempty(window), window = hanning(nfft); end    if isempty(P{3}), noverlap = 0;  else noverlap=P{3}; end    if isempty(P{5}), Fs = 2;     else    Fs = P{5}; end    if isempty(P{6}), p = .95;    else    p = P{6}; end    if ischar(P{7})        dflag = P{7};    else        msg = 'DFLAG parameter must be a string.'; return    endend% NOW do error checkingif (nfft<length(window)),     msg = 'Requires window''s length to be no greater than the FFT length.';endif (noverlap >= length(window)),    msg = 'Requires NOVERLAP to be strictly less than the window length.';endif (nfft ~= abs(round(nfft)))||(noverlap ~= abs(round(noverlap))),    msg = 'Requires positive integer values for NFFT and NOVERLAP.';endif ~isempty(p),    if (numel(p)>1)||(p(1,1)>1)||(p(1,1)<0),        msg = 'Requires confidence parameter to be a scalar between 0 and 1.';    endendif min(size(x))~=1,    msg = 'Requires vector (either row or column) input.';endif (min(size(y))~=1)&&(~isempty(y)),    msg = 'Requires vector (either row or column) input.';endif (length(x)~=length(y))&&(~isempty(y)),    msg = 'Requires X and Y be the same length.';end  %%  Part of Wavelab Version 850%  Built Tue Jan  3 13:20:39 EST 2006%  This is Copyrighted Material%  For Copying permissions see COPYING.m%  Comments? e-mail wavelab@stat.stanford.edu 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜a成v人精品| 99精品欧美一区二区蜜桃免费| 精品国产污网站| 国产乱人伦偷精品视频免下载| 久久免费看少妇高潮| 国产激情视频一区二区三区欧美 | 色妹子一区二区| 亚洲一区在线观看网站| 6080国产精品一区二区| 国产一区二区导航在线播放| 国产精品久久久久久妇女6080| 91色乱码一区二区三区| 视频一区二区不卡| 精品国产不卡一区二区三区| 成人国产在线观看| 亚洲成av人片www| 精品国产免费久久| 99久久精品免费看国产免费软件| 亚洲综合免费观看高清完整版 | 一本大道久久a久久综合| 亚洲国产色一区| 欧美大尺度电影在线| 国产成人免费在线观看| 亚洲一区二区av电影| 精品久久久久久久一区二区蜜臀| 成人ar影院免费观看视频| 亚洲一区二区四区蜜桃| 精品国产网站在线观看| 91在线免费播放| 免费高清在线一区| 国产精品国产三级国产a| 正在播放一区二区| 9色porny自拍视频一区二区| 丝袜亚洲另类欧美综合| 中文一区在线播放| 51精品国自产在线| av一区二区三区四区| 美女mm1313爽爽久久久蜜臀| 最近日韩中文字幕| 日韩久久精品一区| 91久久精品国产91性色tv| 国产一区二区主播在线| 亚洲靠逼com| 久久影视一区二区| 欧美日韩亚洲不卡| 成人综合婷婷国产精品久久蜜臀 | 日本久久电影网| 韩国成人精品a∨在线观看| 一区二区三区中文字幕电影| 久久久久国产精品厨房| 777a∨成人精品桃花网| www.欧美精品一二区| 免费成人av资源网| 亚洲一区二区视频在线| 国产精品拍天天在线| 欧美大胆一级视频| 欧美日本一区二区| av福利精品导航| 精品伊人久久久久7777人| 亚洲色图一区二区三区| 久久久久久97三级| 欧美一区二区人人喊爽| 91福利国产精品| 成人高清免费在线播放| 久久国产精品99久久人人澡| 香蕉久久夜色精品国产使用方法| 国产精品白丝在线| 久久久亚洲午夜电影| 日韩午夜在线观看| 欧美性大战久久| 99久久er热在这里只有精品15| 国产乱码一区二区三区| 日韩黄色在线观看| 亚洲一二三四区| 亚洲欧美综合另类在线卡通| 久久色中文字幕| 欧美v日韩v国产v| 538在线一区二区精品国产| 欧洲一区二区三区免费视频| 不卡视频在线看| 国产精品一卡二卡| 国产真实乱对白精彩久久| 日本91福利区| 亚洲成a人片在线不卡一二三区| 亚洲日本乱码在线观看| 国产精品对白交换视频 | 亚洲一区二区精品视频| 成人欧美一区二区三区视频网页 | 欧美成人女星排名| 欧美一区二区女人| 欧美一区二区三区在线观看视频| 欧美色窝79yyyycom| 欧美综合久久久| 一本大道av一区二区在线播放| 99久久婷婷国产综合精品| 成人精品鲁一区一区二区| 国产高清亚洲一区| 懂色av一区二区三区蜜臀| 国产精品综合网| 久久99国产精品麻豆| 久久精品国产99国产精品| 麻豆精品久久久| 经典三级一区二区| 国内成人精品2018免费看| 精品制服美女久久| 国产一区二区视频在线播放| 国内精品国产成人国产三级粉色 | 这里是久久伊人| 91精品中文字幕一区二区三区| 欧美日韩国产欧美日美国产精品| 欧美日韩在线播放三区四区| 欧美日韩电影在线播放| 欧美喷潮久久久xxxxx| 91精品中文字幕一区二区三区| 欧美一区二区三区色| 日韩欧美亚洲另类制服综合在线| 精品欧美乱码久久久久久1区2区| 精品日韩欧美一区二区| 26uuu欧美日本| 国产精品视频一二三区| 综合欧美一区二区三区| 亚洲自拍偷拍网站| 日本vs亚洲vs韩国一区三区二区| 黄色小说综合网站| 成人午夜私人影院| 91麻豆精品秘密| 欧美日韩国产精品自在自线| 欧美一级免费大片| 久久无码av三级| 亚洲视频香蕉人妖| 亚洲成在人线在线播放| 久久99精品国产麻豆婷婷 | av网站一区二区三区| 在线免费亚洲电影| 欧美理论片在线| 精品欧美一区二区三区精品久久 | 日韩美女视频一区二区| 一区二区成人在线| 久久电影网站中文字幕| 处破女av一区二区| 精品污污网站免费看| 日韩一二三四区| 国产精品久久久久一区 | 亚洲一区二区三区四区在线观看 | 高清久久久久久| 一本久久精品一区二区| 欧美一区二区视频在线观看| 久久精品夜色噜噜亚洲aⅴ| 亚洲视频在线一区观看| 丝袜国产日韩另类美女| 国产一区亚洲一区| 91国产丝袜在线播放| 欧美成人乱码一区二区三区| 椎名由奈av一区二区三区| 日韩av中文在线观看| 国产98色在线|日韩| 欧美日韩在线精品一区二区三区激情| 精品久久国产字幕高潮| 亚洲精品欧美专区| 麻豆精品精品国产自在97香蕉| 99视频有精品| 日韩三级在线免费观看| 中文字幕五月欧美| 日本强好片久久久久久aaa| 成人一级片网址| 欧美日韩精品系列| 中文字幕av在线一区二区三区| 亚州成人在线电影| voyeur盗摄精品| 正在播放亚洲一区| 亚洲色大成网站www久久九九| 日本大胆欧美人术艺术动态| 99久久夜色精品国产网站| 日韩精品一区国产麻豆| 一区二区高清在线| 豆国产96在线|亚洲| 日韩一区二区免费在线观看| 日韩毛片在线免费观看| 国产中文字幕精品| 欧美精品一二三区| 日韩毛片在线免费观看| 国模娜娜一区二区三区| 欧美午夜精品一区| 国产精品免费丝袜| 久久99精品久久久久婷婷| 欧美午夜精品一区| 中文字幕一区在线观看视频| 美女视频黄 久久| 欧美日韩一区二区三区在线 | 久久精品视频网| 青青草国产成人99久久| 日本高清成人免费播放| 国产日韩欧美一区二区三区综合| 视频一区二区不卡| 在线日韩国产精品| 中文字幕在线不卡视频| 国产成人精品免费网站| 精品国产网站在线观看| 日韩黄色免费电影| 欧美视频三区在线播放|