Type-4 Linear-Phase FIR filter

代码:

h = [-4, 1, -1, -2, 5, 6, -6, -5, 2, 1, -1, 4];
M = length(h); n = 0:M-1;
[Hr, w, d, L] = Hr_Type4(h);
d
L dmax = max(d) + 1; dmin = min(d) - 1; figure('NumberTitle', 'off', 'Name', 'Exameple 7.7')
set(gcf,'Color','white'); subplot(2,2,1); stem(n, h); axis([-1, 2*L+1, dmin, dmax]); grid on;
xlabel('n'); ylabel('h(n)'); title('Impulse Response'); subplot(2,2,3); stem(1:L, d); axis([-1, 2*L+1, dmin, dmax]); grid on;
xlabel('n'); ylabel('d(n)'); title('d(n) coefficients'); subplot(2,2,2); plot(w/pi, Hr); grid on;
xlabel('frequency in \pi units'); ylabel('Hr'); title('Type-4 Amplitude Response'); subplot(2,2,4); zplane(h); grid on;
xlabel('real axis'); ylabel('imaginary axis'); title('Pole-Zero Plot');

  运行结果:

3个零点对,一个零点位于ω=0处。

最新文章

  1. 如何在window下查看文件的md5
  2. Unity-WIKI 之 DrawArrow
  3. Hierarchy视图里的Transform和Camera组件
  4. Makefile 使用总结【转】
  5. iis 5.1 连接 sql 2005
  6. Cocos2d-x 3.0 实例学习教程 前沿
  7. 近期Responsive web design项目经验分享
  8. OpenCms创建网站的过程示意图——专用OpenCms人们刚开始学习
  9. javaee 规范技术
  10. 一起写框架-Ioc内核容器的实现-基础功能-ComponentScan支持组件注解限制(七)
  11. Servlet到底是单例还是多例你了解吗?
  12. linq给list集合数据分页
  13. P3273 [SCOI2011]棘手的操作
  14. 使用python+ffmpeg+youtube-dl下载youtube上的视频
  15. async.waterfall
  16. sparkmllib矩阵向量
  17. hi~大家好,特地出来解释下最近为啥都不更新了!
  18. 【自动化专题】selenium如何轻松搞定文件上传
  19. SQL Server 2008 收缩日志(log)文件
  20. django笔记-model

热门文章

  1. js计算之递归
  2. VS2013 The Debugger Resource DLL is out of date
  3. http协议与soap协议区别
  4. Spring的引用内部Bean属性和给级联属性
  5. psd-面试-dp/LCS
  6. 玲珑oj 1028 贪心
  7. ansible modules开发(二)
  8. ADO.NET简介
  9. 【zzuli-1626】又是A+B吗?
  10. DNS智能解析的搭建与配置