This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
DSP/TP2/DiogoEliseu_TP2_1.m

24 lines
386 B
Mathematica
Raw Normal View History

2020-11-17 23:57:44 +00:00
%% Inicialização do ambiente
clear ; close all; clc
2020-11-12 14:46:51 +00:00
%% Exercício 1
2020-11-17 23:57:44 +00:00
figure(1)
2020-11-12 14:46:51 +00:00
p = [1.8, 0.5, -0.3];
2020-11-17 23:57:44 +00:00
d = [1, 0.3, -0.2];
w = -4*pi:(8*pi/999):4*pi;
freqz(p, d, w)
figure(2)
p = [1];
2020-11-12 14:46:51 +00:00
d = [1, 0.5];
2020-11-15 21:51:27 +00:00
w = -4*pi:(8*pi/999):4*pi;
2020-11-17 23:57:44 +00:00
freqz(p, d, w)
2020-11-12 14:46:51 +00:00
2020-11-17 23:57:44 +00:00
figure(3)
p = [1 2 3 4 1 3];
w = -4*pi:(8*pi/999):4*pi;
%[cena, coisa] = freqz(p, 1, w);
%plot(unwrap(angle(cena)));
%figure(4)
freqz(p, 1, w);