ÓïÒôÐźŵÄÊý×ÖÂ˲¨´¦Àí ÏÂÔر¾ÎÄ

ÓïÒôÐźŵÄÊý×ÖÂ˲¨´¦Àí¡ª¡ª°ÍÌØÎÖ˼¡¢bartlett´°Â˲¨Æ÷Éè¼Æ

ͼ4.3 °ÍÌØÎÖ˼´øͨÂ˲¨Æ÷´¦ÀíÔëÉùͼ

4.4 Bartlett´°µÍͨÂ˲¨Æ÷

½«ÓïÒôÐźźÍÔëÒôÐźŵþ¼Ó¿ÉÒԵõ½º¬ÔëÉùÐźţ¬·ÖÎöÆäƵÆ×ÌØÐÔÖ®ºóÓÃ

Bartlett ´°µÍͨÂ˲¨Æ÷½øÐÐÓïÒôÐźŵÄÂ˲¨¡£MATLAB³ÌÐòÈçÏ£¬·ÂÕæ´¦ÀíÈçͼ4.4

Ëùʾ¡£ %ÓïÒôÐźÅ

Fs=22050;

[x,FS,bits]=wavread('C:\\WINDOWS\\Media'); x=x(:,1); figure(1); subplot(2,1,1); plot(x);

%sound(x,FS,bits); %»Ø·ÅÓïÒô title('ÓïÒôÐźÅʱÓò²¨ÐÎͼ') y=fft(x,3260);

f=(FS/1630)*[1:1630]; subplot(2,1,2);

µÚ 29 Ò³ ¹² 56 Ò³

ÓïÒôÐźŵÄÊý×ÖÂ˲¨´¦Àí¡ª¡ª°ÍÌØÎÖ˼¡¢bartlett´°Â˲¨Æ÷Éè¼Æ

plot(f(1:1630),abs(y(1:1630))); title('ÓïÒôÐźÅƵÆ×ͼ'); %²úÉúÔëÉùÐźŲ¢¼Óµ½ÓïÒôÐźŠt=0:length(x)-1;

zs=0.05*cos(2*pi*10000*t/22050); zs0=0.05*cos(2*pi*10000*t/22050000); figure(2); subplot(2,1,1) plot(zs0)

title('ÔëÉùÐźŲ¨ÐÎ'); zs1=fft(zs,1200);

%sound(zs,FS,bits); %»Ø·ÅÔëÒô subplot(2,1,2)

plot(f(1:600),abs(zs1(1:600))); title('ÔëÉùÐźÅƵÆ×'); x1=x+zs';

%sound(x1,FS,bits); %»Ø·Å¼ÓÈëÔëÉùºóµÄÓïÒô y1=fft(x1,1200); figure(3);

subplot(2,1,1);plot(x1); title('¼ÓÈëÔëÉùºóµÄÐźŲ¨ÐÎ'); subplot(2,1,2);

plot(f(1:600),abs(y1(1:600))); title('¼ÓÈëÔëÉùºóµÄÐźÅƵÆ×'); %µÍͨ¼Ó´°Â˲¨

fp=3000,fc=3500; wp=2*pi*fp/FS; ws=2*pi*fc/FS;

Bt=ws-wp;

µÚ 30 Ò³ ¹² 56 Ò³

ÓïÒôÐźŵÄÊý×ÖÂ˲¨´¦Àí¡ª¡ª°ÍÌØÎÖ˼¡¢bartlett´°Â˲¨Æ÷Éè¼Æ

N0=ceil(11*pi/Bt); N=N0+mod(N0+1,2); wc=(wp+ws)/2/pi; hn=fir1(N-1,wc,bartlett(N)); X=conv(hn,x); sound(X,FS,bits); X1=fft(X,1200); figure(4); subplot(211); plot(X);

title('Â˲¨ºóµÄÐźŲ¨ÐÎ'); subplot(212);

plot(f(1:600),abs(X1(1:600))); title('Â˲¨ºóµÄÐźÅƵÆ×')

ͼ4.4 Bartlett´°µÍͨÂ˲¨Æ÷´¦ÀíÔëÉùͼ

4.5 Bartlett´°¸ßͨÂ˲¨Æ÷

µÚ 31 Ò³ ¹² 56 Ò³

ÓïÒôÐźŵÄÊý×ÖÂ˲¨´¦Àí¡ª¡ª°ÍÌØÎÖ˼¡¢bartlett´°Â˲¨Æ÷Éè¼Æ

½«ÓïÒôÐźźÍÔëÒôÐźŵþ¼Ó¿ÉÒԵõ½º¬ÔëÉùÐźţ¬·ÖÎöÆäƵÆ×ÌØÐÔÖ®ºóÓÃ

Bartlett ´°¸ßͨÂ˲¨Æ÷½øÐÐÓïÒôÐźŵÄÂ˲¨¡£MATLAB³ÌÐòÈçÏ£¬·ÂÕæ´¦ÀíÈçͼ4.5

Ëùʾ¡£

Fs=22050;

[x,FS,bits]=wavread('C:\\WINDOWS\\Media'); x=x(:,1); figure(1); subplot(2,1,1); plot(x);

%sound(x,FS,bits); %»Ø·ÅÓïÒô title('ÓïÒôÐźÅʱÓò²¨ÐÎͼ') y=fft(x,3260);

f=(FS/1630)*[1:1630]; subplot(2,1,2);

plot(f(1:1630),abs(y(1:1630))); title('ÓïÒôÐźÅƵÆ×ͼ'); %²úÉúÔëÉùÐźŲ¢¼Óµ½ÓïÒôÐźŠ%²úÉúÔëÉùÐźŲ¢¼Óµ½ÓïÒôÐźŠt=0:length(x)-1;

zs0=0.05*cos(2*pi*100*t/22050); figure(2); subplot(2,1,1) plot(zs0)

title('ÔëÉùÐźŲ¨ÐÎ'); zs1=fft(zs0,1200);

%sound(zs,FS,bits); %»Ø·ÅÔëÒô subplot(2,1,2)

plot(f(1:600),abs(zs1(1:600))); title('ÔëÉùÐźÅƵÆ×');

µÚ 32 Ò³ ¹² 56 Ò³