You are on page 1of 2

1.a. >> b=10; 3.c >> b=[0.634 0 0.

634];
>> a=[1,2]; >> a=[1 0 0.268];
>> n=10; >> n=100;
>> [h,t]=impz(b,a,n); >> [H,f]=freqz(b,a,n);
>> stem(h,t) >> subplot(3,1,1);grpdelay(b,a,n);
GBR
>> subplot(3,1,2);zplane(b,a);
1.b. >> b=[3 0 5 0 7]; >>
>> a=1; subplot(3,1,3),plot(f,unwrap(angle(
>> n=100; H))*180/pi);
>> [h,t]=impz(b,a,n); GBR
>> stem(h,t)
GBR 4.b >> b=[0.634 0 -0.634];
>> a=[1 0 -0.268];
2.a. >> b=10;
>> n=100;
>> a=[1,2];
>> freqz(b,a,n,'whole');
>> n=10;
GBR
>> freqz(b,a,n)
>> [H,f]=freqz(b,a,n);
GBR
>>
2.b. >> b=[3 0 5 0 7];
plot(f,unwrap(angle(H))*180/pi);
>> a=1;
GBR
>> n=100;
>>freqz(b,a,n)
4.c >> b=[0.634 0 0.634];
GBR
>> a=[1 0 0.268];
3.b >> b=[0.634 0 -0.634]; >> n=100;
>> a=[1 0 -0.268]; >> freqz(b,a,n,'whole');
>> n=100; GBR
>> [H,f]=freqz(b,a,n); >> [H,f]=freqz(b,a,n);
>> subplot >>
>> subplot(3,1,1);grpdelay(b,a,n); plot(f,unwrap(angle(H))*180/pi);
>> subplot(3,1,2);zplane(b,a); GBR
>>
subplot(3,1,3),plot(f,unwrap(angle(
H))*180/pi);
GBR
Tugas Akhir 2.b >> b=[1 -5 10];
1.a >> b=[0.16 -0.48 0.48 -0.16]; >> a=[10 -5 1];
>> a=[1 0.13 0.52 0.3]; >> n=100;
>> n=100; >> freqz(b,a,n,'whole');
>> [H,f]=freqz(b,a,n); GBR
>> subplot(3,1,1);grpdelay(b,a,n); >> [H,f]=freqz(b,a,n);
>> subplot(3,1,2);zplane(b,a); >>
>> plot(f,unwrap(angle(H))*180/pi);
subplot(3,1,3),plot(f,unwrap(angle( GBR
H))*180/pi);
GBR 3.

1.b >> b=[1 -5 10];


>> a=[10 -5 1];
>> n=100;
>> [H,f]=freqz(b,a,n);
>> subplot(3,1,1);grpdelay(b,a,n);
>> subplot(3,1,2);zplane(b,a);
>>
subplot(3,1,3),plot(f,unwrap(angle(
H))*180/pi);
GBR

2.a >> b=[0.16 -0.48 0.48 -0.16];


>> a=[1 0.13 0.52 0.3];
>> n=100;
>> freqz(b,a,n,'whole');
GBR
>> [H,f]=freqz(b,a,n);
>>
plot(f,unwrap(angle(H))*180/pi);
GBR

You might also like