⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p8_3.m

📁 数字信号处理实验指导书程序电子版的相关程序
💻 M
字号:
% Program P8_3% Illustration of Filtering by an IIR Filter%clf;% Generate the input sequencek = 0:50;w2 = 0.7*pi;w1 = 0.2*pi;x1 = 1.5*cos(w1*k); x2 = 2*cos(w2*k);x = x1+x2;% Determine the filter transfer function[N, Wn] = ellipord(0.25, 0.55, 0.5, 50);[num, den] = ellip(N,0.5, 50,Wn);% Generate the output sequencey = filter(num,den,x);% Plot the input and the output sequencessubplot(2,1,1);stem(k,x); grid; axis([0 50 -4 4]);xlabel('Time index n'); ylabel('Amplitude');title('Input Sequence');subplot(2,1,2);stem(k,y); grid; axis([0 50 -4 4]);xlabel('Time index n'); ylabel('Amplitude');title('Output Sequence');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -