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