clc
clear all
close all
syms z n hz y x
a= 106/100
hn=a^n;
hz=ztrans(hn)
b = [1 0]
a = [1 -106/100]
[H,w]=freqz(b,a,100)
magH=abs(H)
phaH=angle(H)
subplot 211
plot(w/pi,magH)
title('Picture 1')
ylabel('Magnitude')
xlabel('Frekuensi (rad/sample)')
grid on
subplot 212
plot(w/pi,phaH/pi)
title('Picture 2')
ylabel('Phase')
xlabel('Frekuensi (rad/sample)')
grid on