当前位置:文档下载 > 所有分类 > 数字信号处理综合实验11
侵权投诉

数字信号处理综合实验11

subplot(4,1,2);plot(x2);axis([0 1000 -3 3]);

title('Signal x2');xlabel('sample');ylabel('magnitude');

subplot(4,1,3);plot(x3);axis([0 1000 -3 3]);

title('Signal x3');xlabel('sample');ylabel('magnitude');

subplot(4,1,4);plot(x);axis([0 1000 -3 3]);

title('Signal x');xlabel('sample');ylabel('magnitude');

%信号频域图

figure(2)

subplot(4,1,1);plot(abs(x1f));axis([0 1000 -3 3]);

title('Signal x1');xlabel('sample');ylabel('magnitude');

subplot(4,1,2);plot(abs(x2f));axis([0 1000 -3 3]);

title('Signal x2');xlabel('sample');ylabel('magnitude');

subplot(4,1,3);plot(abs(x3f));axis([0 1000 -3 3]);

title('Signal x3');xlabel('sample');ylabel('magnitude');

subplot(4,1,4);plot(abs(xf));axis([0 1000 -3 3]);

title('Signal x');xlabel('sample');ylabel('magnitude');

%滤波器幅度响应图

figure(3)

subplot(4,1,1);plot(abs(freqz(b1,a1,1000)));axis([0 1000 -3 3]);

title('Lowpass Filter Magnitude Response');xlabel('w');ylabel('magnitude'); subplot(4,1,2);plot(abs(freqz(b2,a2,1000)));axis([0 1000 -3 3]);

title('Bandpass Filter Magnitude Response');xlabel('w');ylabel('magnitude'); subplot(4,1,3);plot(abs(freqz(b3,a3,1000)));axis([0 1000 -3 3]);

title('Highpass Filter Magnitude Response');xlabel('w');ylabel('magnitude'); %低通滤波器

figure(4)

subplot(3,1,1);plot(x1);axis([0 1000 -3 3]);

title('Signal x1');xlabel('sample');ylabel('magnitude');

subplot(3,1,2);plot(x);axis([0 1000 -3 3]);

title('Signal x');xlabel('sample');ylabel('magnitude');

subplot(3,1,3);plot(x1p);axis([0 1000 -3 3]);

title('Signal x1p');xlabel('sample');ylabel('magnitude');

%带通滤波器

figure(5)

subplot(3,1,1);plot(x2);axis([0 1000 -3 3]);

title('Signal x2');xlabel('sample');ylabel('magnitude');

subplot(3,1,2);plot(x);axis([0 1000 -3 3]);

title('Signal x');xlabel('sample');ylabel('magnitude');

subplot(3,1,3);plot(x2p);axis([0 1000 -3 3]);

title('Signal x2p');xlabel('sample');ylabel('magnitude');

%高通滤波器

figure(6)

subplot(3,1,1);plot(x3);axis([0 1000 -3 3]);

title('Signal x3');xlabel('sample');ylabel('magnitude');

上一页第2页

猜你喜欢

TOP相关主题

返回顶部