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

📄 example7_2.m

📁 西交大刘树棠写的《数字信号处理》那本书的所有源代码
💻 M
字号:
h=[-4,1,-1,-2,5,6,5,-2,-1,1,-4];
M=length(h);n=0:M-1;
[Hr,w,a,L]=Hr_Type1(h);
a,L
amax=max(a)+1;
amin=min(a)-1;
subplot(2,2,1);stem(n,h);axis([-1 2*L+1 amin amax])
xlabel('n');ylabel('h(n)');title('impuse response')
subplot(2,2,3);stem(n:L,a);axis([-1 2*L+1 amin amax])
xlabel('n');ylabel('a(n)');title('a(n) coefficient')
subplot(2,2,2);plot(w/pi,Hr);grid
xlabel('frequency in pi units');ylabel('Hr')
title('Type-1 Amplitude Response')
subplot(2,2,4);zplane(h,1)

⌨️ 快捷键说明

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