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

12 lines
241 B
Mathematica
Raw Normal View History

2020-11-12 14:46:51 +00:00
%% Exercício 1
p = [1.8, 0.5, -0.3];
d = [1, 0.5];
w = 0:(4*pi/1023):2*pi;
y2a = freqz(p, d, w);
X = freqz(p, d, w);
subplot(2,1,1),plot(w, abs(X))
xlabel('w'),title('Magnitude')
subplot(2,1,2),plot(w, angle(X))
xlabel('w'),title('Phase')