《DSP using MATLAB》Problem 4.11

代码:
%% ----------------------------------------------------------------------------
%% Output Info about this m-file
fprintf('\n***********************************************************\n');
fprintf(' <DSP using MATLAB> Problem 4.11 \n\n'); banner();
%% ---------------------------------------------------------------------------- format rat;
%% -------------------------------------------------
%% 1 X1(z) rightsided
%% ------------------------------------------------- b = [1, -1, -4, 4]; nb = [0:3];
a = [1, -11/4, 13/8, -1/4]; na = [0:3]; %[p, r] = deconv(b, a)
%[p, np, r, nr] = deconv_m(b, nb, a, na)
[R, p, C] = residuez(b, a) %[delta, n] = impseq(0,0,7);
%x = filter(b, a, delta) %[b,a] = residuez(R, p, C) %Mp = abs((p))'
%Ap = angle((p))' figure('NumberTitle', 'off', 'Name', 'Problem 4.11.1 X1(z)')
set(gcf,'Color','white');
zplane(b, a); % row vector
title('Zero-Pole Plot'); xlabel('Re'); ylabel('Im'); grid on; fprintf('\n-------------------- X2(z) ------------------ \n\n');
%% -------------------------------------------------
%% 2 X2(z) absolutely summable
%% ------------------------------------------------- b = [1, 1, -4, 4]; nb = [0:3];
a = [1, -11/4, 13/8, -1/4]; na = [0:3]; %[p, r] = deconv(b, a)
%[p, np, r, nr] = deconv_m(b, nb, a, na)
[R, p, C] = residuez(b, a) %[delta, n] = impseq(0,0,7);
%x = filter(b, a, delta) %[b,a] = residuez(R, p, C) %Mp = abs((p))'
%Ap = angle((p))' figure('NumberTitle', 'off', 'Name', 'Problem 4.11.2 X2(z)')
set(gcf,'Color','white');
zplane(b, a); % row vector
title('Zero-Pole Plot'); xlabel('Re'); ylabel('Im'); grid on; fprintf('\n-------------------- X3(z) ------------------ \n\n');
%% -------------------------------------------------
%% 3 X3(z) leftsided
%% ------------------------------------------------- b = [1, -3, 4, 1]; nb = [0:3];
a = [1, -4, 1, -0.16]; na = [0:3]; %[p, r] = deconv(b, a)
%[p, np, r, nr] = deconv_m(b, nb, a, na)
[R, p, C] = residuez(b, a) %[delta, n] = impseq(0,0,7);
%x = filter(b, a, delta) %[b,a] = residuez(R, p, C) Mp = abs((p))'
Ap = angle((p))'/pi % pole angle in pi units figure('NumberTitle', 'off', 'Name', 'Problem 4.11.3 X3(z)')
set(gcf,'Color','white');
zplane(b, a); % row vector
title('Zero-Pole Plot'); xlabel('Re'); ylabel('Im'); grid on; fprintf('\n-------------------- X4(z) ------------------ \n\n');
%% -------------------------------------------------
%% 4 X4(z) leftsided
%% ------------------------------------------------- b = [0, 0, 1]; nb = [0:2];
a = [1, 2, 1.25, 0.25]; na = [0:3]; %[p, r] = deconv(b, a)
%[p, np, r, nr] = deconv_m(b, nb, a, na)
[R, p, C] = residuez(b, a) %[delta, n] = impseq(0,0,7);
%x = filter(b, a, delta) %[b,a] = residuez(R, p, C) %Mp = abs((p))'
%Ap = angle((p))' figure('NumberTitle', 'off', 'Name', 'Problem 4.11.4 X4(z)')
set(gcf,'Color','white');
zplane(b, a); % row vector
title('Zero-Pole Plot'); xlabel('Re'); ylabel('Im'); grid on; fprintf('\n-------------------- X5(z) ------------------ \n\n');
%% -------------------------------------------------
%% 5 X5(z) leftsided
%% ------------------------------------------------- b = [0, 0, 0, 1]; nb = [0:3];
a = [1, 0, -0.5, 0, 0.25*0.25]; na = [0:3]; %[p, r] = deconv(b, a)
%[p, np, r, nr] = deconv_m(b, nb, a, na)
[R, p, C] = residuez(b, a) %[delta, n] = impseq(0,0,7);
%x = filter(b, a, delta) %[b,a] = residuez(R, p, C) %Mp = abs((p))'
%Ap = angle((p))' figure('NumberTitle', 'off', 'Name', 'Problem 4.11.5 X5(z)')
set(gcf,'Color','white');
zplane(b, a); % row vector
title('Zero-Pole Plot'); xlabel('Re'); ylabel('Im'); grid on;
运行结果:










《DSP using MATLAB》Problem 4.11的更多相关文章
- 《DSP using MATLAB》Problem 7.11
代码: %% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %% Output In ...
- 《DSP using MATLAB》Problem 6.11
代码: %% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %% Output In ...
- 《DSP using MATLAB》Problem 5.11
代码: %% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ %% Output In ...
- 《DSP using MATLAB》Problem 8.11
代码: %% ------------------------------------------------------------------------ %% Output Info about ...
- 《DSP using MATLAB》Problem 7.16
使用一种固定窗函数法设计带通滤波器. 代码: %% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ...
- 《DSP using MATLAB》Problem 7.6
代码: 子函数ampl_res function [Hr,w,P,L] = ampl_res(h); % % function [Hr,w,P,L] = Ampl_res(h) % Computes ...
- 《DSP using MATLAB》Problem 5.21
证明: 代码: %% ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ...
- 《DSP using MATLAB》Problem 5.20
窗外的知了叽叽喳喳叫个不停,屋里温度应该有30°,伏天的日子难过啊! 频率域的方法来计算圆周移位 代码: 子函数的 function y = cirshftf(x, m, N) %% -------- ...
- 《DSP using MATLAB》Problem 5.14
说明:这两个小题的数学证明过程都不会,欢迎博友赐教. 直接上代码: %% +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ...
随机推荐
- English trip -- VC(情景课)3 C Do you have a sister?(maple verstion)
xu言: 温故而知新,可以为师矣.不要小瞧重复的东西,不同的老师,不同的角度,不同的方法.你就会掌握不同的知识~ Review what you have learned and get someth ...
- Jersey 2.x 前言和约定的文本格式
这是Jersey 2.x 的用户指南.我们极力将它能与我们新增的功能保持一致.当阅读本指南,作为补充,也请移步至Jersey API documentation查看 Jersey 的特性和 API. ...
- Weird journey CodeForces - 788B (路径计数)
大意:$n$结点$m$条边无向图, 满足 $(1)$经过$m-2$条边$2$次 $(2)$经过其余$2$条边$1$次 的路径为好路径, 求所有好路径数 相当于边加倍后再删除两条边, 求欧拉路条数 首先 ...
- 170301、使用Spring AOP实现MySQL数据库读写分离案例分析
使用Spring AOP实现MySQL数据库读写分离案例分析 原创 2016-12-29 徐刘根 Java后端技术 一.前言 分布式环境下数据库的读写分离策略是解决数据库读写性能瓶颈的一个关键解决方案 ...
- 对mysql性能影响的几个重要参数---高性能(七)
转载地址:https://wenku.baidu.com/view/f6bd760cb307e87101f696e3.html
- spring cloud学习(四) Fegin 的使用
Feign 的使用 什么是Feign? Feign : Declarative REST clients. Feign 是一个声明web服务客户端,这便得编写web服务客户端更容易,使用Feign 创 ...
- linux command curl and sha256sum implement download verification package
example: download_etcher_cli(){ local url="https://github.com/resin-io/etcher/releases/download ...
- 随机产生div背景颜色变化
使一个DIV在每次刷新后变化背景颜色,很容易想到JS的random()函数:通过每次刷新页面产生使背景rgb随机产生 <!doctype html> <html> <he ...
- pl/sql快速输入select等语句
平时对数据库操作的时候,输入DML语句,很浪费时间,我们想要这样的效果 ,输入sf,plsql就会自动输入select * from.我们需要在plsql中进行如下设置即可: 工具(tools)--& ...
- 集合list里存储list,要遍历最底层list的对象元素的遍历方法
package com.wtd; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; im ...