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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wholecontrol.m

?? f-xlms算法程序 非常有用的消噪用的程序
?? M
字號:
Fs = 8000;
N = 800;
delayS = 7;
[B,A] = cheby2(4,20,[0.04 0.5]);
Hd = dfilt.df2t(B,A);
H = filter(Hd,[zeros(1,delayS) log(0.99*rand(1,N-delayS)+0.01).*sign(randn(1,N-delayS)).*exp(-0.01*(1:N-delayS))]);
H = H/norm(H);
t = 1/Fs:1/Fs:N/Fs;
plot(t,H,'b');
xlabel('Time [sec]');
ylabel('Coefficient value');
title('True Secondary Path Impulse Response');
hold;

%% Estimating the Secondary Propagation Path
% The first task in active noise control is to estimate the impulse
% response of the secondary propagation path.  This step is usually 
% performed prior to noise control using a synthetic random signal played 
% through the output loudspeaker while the unwanted noise is not present. 
% The following commands generate 3.75 seconds of this random noise as well 
% as the measured signal at the error microphone.  

ntrS = 30000;
s = randn(1,ntrS);
dS = filter(H,1,s) + 0.01*randn(1,ntrS);

%% Designing the Secondary Propagation Path Estimate
% Typically, the length of the secondary path filter estimate is not as
% long as the actual secondary path and need not be for adequate control
% in most cases.  We shall use a secondary path filter length of 250
% taps, corresponding to an impulse response length of 31 msec. 
% While any adaptive FIR filtering algorithm could be used for this 
% purpose, the normalized LMS algorithm is often used due to its 
% simplicity and robustness. Plots of the output and error signals show
% that the algorithm converges after about 10000 iterations.

M = 250;
muS = 0.1; offsetS = 0.1;
h = adaptfilt.nlms(M,muS,1,offsetS);
[yS,eS] = filter(h,s,dS);

n = 1:ntrS;
plot(n,dS,n,yS,n,eS);
xlabel('Number of iterations');
ylabel('Signal value');
title('Secondary Identification Using the NLMS Adaptive Filter');
legend('Desired Signal','Output Signal','Error Signal');


%% Accuracy of the Secondary Path Estimate
% How accurate is the secondary path impulse response estimate?  This
% plot shows the coefficients of both the true and estimated path.
% Only the tail of the true impulse response is not estimated 
% accurately.  This residual error does not significantly harm the
% performance of the active noise control system during its operation
% in the chosen task. 

Hhat = h.Coefficients;
plot(t,H,t(1:M),Hhat,t,[H(1:M)-Hhat(1:M) H(M+1:N)]);
xlabel('Time [sec]');
ylabel('Coefficient value');
title('Secondary Path Impulse Response Estimation');
legend('True','Estimated','Error');

%% The Primary Propagation Path
% The propagation path of the noise to be cancelled can also be
% characterized by a linear filter.  The following commands
% generate an input-to-error microphone impulse response that is
% bandlimited to the range 200 - 800 Hz and has a filter length of 
% 0.1 seconds.

delayW = 15;
[B,A] = cheby2(5,20,[0.05 0.2]);
Hd2 = dfilt.df2t(B,A);
G = filter(Hd2,[zeros(1,delayW) log(0.99*rand(1,N-delayW)+0.01).*sign(randn(1,N-delayW)).*exp(-0.01*(1:N-delayW))]);
G = G/norm(G);
plot(t,G,'b');
xlabel('Time [sec]');
ylabel('Coefficient value');
title('Primary Path Impulse Response');


%% The Noise to be Cancelled
% Typical active noise control pplications involve the sounds of
% rotating machinery due to their annoying characteristics.  Here,
% we have synthetically generated 7.5 seconds of a noise that 
% might come from a typical electric motor.  Listening to its sound 
% at the error microphone before cancellation, it has the characteristic 
% industrial "whine" of such motors.  The spectrum of the sound
% is also plotted.  

ntrW = 60000;
F0 = 60;
n = 1:ntrW;
A = [0.01 0.01 0.02 0.2 0.3 0.4 0.3 0.2 0.1 0.07 0.02 0.01];
x = zeros(1,ntrW);
for k=1:length(A);
    x = x + A(k)*sin(2*pi*(F0*k/Fs*n+rand(1)));
end
d = filter(G,1,x) + 0.1*randn(1,ntrW);
% [Pd,F] = spectrum(d(ntrW-20000:ntrW),2048,[],[],Fs);
[Pd,F] = pwelch(d(ntrW-20000:ntrW),[],[],2048,Fs);
plot(F,10*log10(Pd(:,1)*Fs));
axis([0 2000 -25 30]);
xlabel('Frequency [Hz]');
% ylabel('Amplitude [dB]');
ylabel('Power Spectrum Estimate [dB]');
title('Spectrum of the Noise to be Cancelled');
sound(d/max(abs(d)),Fs);


%% Active Noise Control using the filtered-X LMS Algorithm
% The most popular adaptive algorithm for active noise control is
% the filtered-X LMS algorithm.  This algorithm uses the secondary
% path estimate to calculate an output signal whose contribution
% at the error sensor destructively interferes with the undesired
% noise.  The reference signal is a noisy version of the undesired
% sound measured near its source.  We shall use a controller filter
% length of about 44 msec and a step size of 0.0001 for these
% signal statistics.  The resulting algorithm converges after about
% 5 seconds of adaptation. Listening to the error signal, the 
% annoying "whine" is reduced considerably.  

xhat = x + 0.1*randn(1,ntrW);
L = 350;
muW = 0.0001;
h = adaptfilt.filtxlms(L,muW,1,Hhat);
[y,e] = filter(h,xhat,d);

%plot(n,d,'b',n,r,'g',n,e,'r');
plot(n,d,'b',n,y,'g',n,e,'r');
xlabel('Number of iterations');
ylabel('Signal value');
title('Active Noise Control Using the Filtered-X LMS Adaptive Controller');
legend('Original Noise','Anti-Noise','Residual Noise');
sound(e/max(abs(e)),Fs);


%% Residual Error Signal Spectrum
% Comparing the spectrum of the residual error signal with that of the
% original noise signal, we see that most of the periodic components 
% have been attenuated considerably.  The steady-state cancellation 
% performance may not be uniform across all frequencies, however.  
% Such is often the case for real-world systems appled to active noise 
% control tasks.

% [Pe,F] = spectrum(e(ntrW-20000:ntrW),2048,[],[],Fs);
[Pe,F] = pwelch(e(ntrW-20000:ntrW),[],[],2048,Fs);
plot(F,10*log10(Pd(:,1)*Fs),'b',F,10*log10(Pe(:,1)*Fs),'r');
axis([0 2000 -25 30]);
xlabel('Frequency [Hz]');
% ylabel('Amplitude [dB]');
ylabel('Power Spectrum Estimate [dB]');
title('Spectra of the Original and Attenuated Noise');

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩中文字幕一区二区| 亚洲综合成人网| 蜜臀av性久久久久蜜臀av麻豆| 粉嫩13p一区二区三区| 欧美日韩aaa| 蜜臀av一区二区三区| 男女男精品视频| 精品国产亚洲在线| 国产精品主播直播| 久久久精品日韩欧美| 国产传媒久久文化传媒| 精品少妇一区二区三区在线播放| 激情文学综合网| 国产三级欧美三级日产三级99| 国产综合色精品一区二区三区| 欧美mv日韩mv国产网站| 国产98色在线|日韩| 夜夜嗨av一区二区三区网页| 91麻豆精品国产91久久久久久久久| 亚洲一区二区在线免费观看视频| 在线日韩国产精品| 日韩精品三区四区| 国产午夜亚洲精品羞羞网站| 色综合久久综合中文综合网| 国产精品久久夜| 色婷婷av一区二区三区大白胸| 天堂成人国产精品一区| 国产精品大尺度| 日韩视频免费直播| 色综合久久88色综合天天免费| 免费高清成人在线| 亚洲人成精品久久久久久| 国产网站一区二区| 精品盗摄一区二区三区| 99re8在线精品视频免费播放| 日韩高清在线观看| 樱花影视一区二区| 自拍偷拍国产精品| 亚洲国产成人一区二区三区| 欧美亚洲一区二区在线观看| 国产精品一品视频| 日韩国产一二三区| 亚洲国产成人tv| 亚洲国产sm捆绑调教视频| 中文av一区二区| 2021久久国产精品不只是精品| 色素色在线综合| 色哟哟亚洲精品| 成人国产精品免费观看动漫| 国产一区二区三区四区五区美女| 日韩av中文字幕一区二区三区 | 3d成人动漫网站| 欧美精品黑人性xxxx| 91热门视频在线观看| 93久久精品日日躁夜夜躁欧美| 成人性生交大合| 成人午夜又粗又硬又大| av一二三不卡影片| 99精品1区2区| 欧美男生操女生| 日韩欧美一区在线| 国产精品久久久久久妇女6080 | 亚洲www啪成人一区二区麻豆| 综合色天天鬼久久鬼色| 亚洲电影视频在线| 国产剧情一区二区| 在线一区二区视频| 久久免费美女视频| 亚洲特黄一级片| 国产综合色产在线精品| 国产永久精品大片wwwapp | 国产精品18久久久久久久久| 激情综合网激情| 欧美在线不卡一区| 中文字幕av资源一区| 专区另类欧美日韩| 蓝色福利精品导航| 成人免费视频播放| 日韩精品中文字幕在线一区| 亚洲精品午夜久久久| 国产麻豆午夜三级精品| 精品国产自在久精品国产| 亚洲少妇屁股交4| 国产成人午夜99999| 欧美又粗又大又爽| 国产精品欧美久久久久一区二区| 亚洲无人区一区| 精品视频在线免费| 国产精华液一区二区三区| 欧美日韩一区二区三区免费看 | 国产拍欧美日韩视频二区| 久久国产生活片100| 日韩视频一区二区三区在线播放| 亚洲精选免费视频| 91首页免费视频| 久久天堂av综合合色蜜桃网| 久久国产麻豆精品| 欧美国产一区二区| 99久久夜色精品国产网站| 亚洲欧美综合网| 国产成人av资源| 国产精品毛片高清在线完整版| 久色婷婷小香蕉久久| 欧美极品aⅴ影院| 91首页免费视频| 偷拍亚洲欧洲综合| 日本一区二区免费在线| 成人av在线影院| 偷偷要91色婷婷| 国产亚洲制服色| 欧美三级视频在线| 日日骚欧美日韩| 国产精品久久久久久久久久久免费看 | 国产精品国产三级国产aⅴ入口 | 欧美在线三级电影| 激情五月婷婷综合| 亚洲综合色网站| 久久久激情视频| 欧美日韩午夜在线视频| 国产乱码精品一区二区三区五月婷 | 国产伦精品一区二区三区免费 | 国产一区二区h| 一区二区三区中文字幕电影 | 亚洲一区二区三区视频在线播放| 精品盗摄一区二区三区| 一本久久a久久精品亚洲 | 亚洲男人都懂的| 精品99一区二区| 日本久久一区二区| 成人免费av在线| 激情久久五月天| 夜夜嗨av一区二区三区中文字幕| 26uuuu精品一区二区| 91麻豆精品在线观看| 韩国精品一区二区| 国产揄拍国内精品对白| 亚洲高清在线视频| 亚洲国产你懂的| 国产精品第一页第二页第三页| 日韩色在线观看| 日韩视频123| 欧美va在线播放| 欧美韩国一区二区| 国产拍揄自揄精品视频麻豆| 久久久91精品国产一区二区三区| 欧美日韩一级视频| 日韩一区二区三区在线视频| 日本道精品一区二区三区| 97se亚洲国产综合自在线不卡| 激情五月播播久久久精品| 国产曰批免费观看久久久| 国内精品伊人久久久久影院对白| 日本中文字幕一区| 国产一区二区精品在线观看| 国产尤物一区二区| 国产精品996| 91小视频免费观看| 在线免费观看日本一区| 色婷婷久久久久swag精品| 色一情一乱一乱一91av| 在线观看日韩精品| 欧美一级艳片视频免费观看| 日韩视频免费直播| 国产精品伦一区| 亚洲成人免费在线| 精品一区二区三区在线观看国产| 高清不卡在线观看| 欧美精品乱码久久久久久按摩| 久久免费电影网| 午夜精品爽啪视频| 成人av资源下载| 精品欧美一区二区在线观看| 国产精品你懂的| 久久精品国产一区二区三区免费看| www.性欧美| 精品成人免费观看| 亚洲一区二区精品久久av| 精品无人码麻豆乱码1区2区| 99精品视频一区| 欧美一级二级三级乱码| 中文字幕亚洲一区二区va在线| 奇米色777欧美一区二区| 91久久一区二区| 国产精品福利一区| av综合在线播放| 国产精品视频一区二区三区不卡| 天天色综合天天| 欧美性色综合网| 亚洲高清一区二区三区| 在线亚洲高清视频| 一区二区三区高清在线| 97久久超碰国产精品电影| 国产精品久久久一本精品| 国产一区二区在线观看视频| 欧美一级艳片视频免费观看| 久久99精品国产91久久来源| 精品久久国产字幕高潮| 国产成人日日夜夜| 国产精品久久久一本精品| 91免费观看视频|