Anda di halaman 1dari 10

I.

PROSEDUR PERCOBAAN
A. Filter Butterworth Analog:
1. Bukalah aplikasi MATLAB kemudian klik pada ikon New Script
untuk membuka window Editor.

2. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi Low Pass Filter Butterworth analog:

Wp = 100;
Ws = 300;
rp = 1;
rs = 20;
fs = [ 0:1:100]/2*pi;
[n,Wn] = buttord (Wp,Ws,rp,rs,'s');
[b,a] = butter (n,Wn,'low','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';

3. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

4. Catat syntax beserta hasil simulasi Low Pass Filter Butterworth


analog.

5. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi High Pass Filter Butterworth analog:

Wp = 500;
Ws = 300;
rp = 5;
rs = 10;
fs = [ 0:1:100]/2*pi;
[n,Wn] = buttord (Wp,Ws,rp,rs,'s');
[b,a] = butter (n,Wn,'high','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';

6. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

7. Catat syntax beserta hasil simulasi High Pass Filter Butterworth


analog.

8. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi Band Pass Filter Butterworth analog:

Wp = [400,600];
Ws = [100,700];
rp = 6;
rs = 20;
fs = [ 0:1:700]/2*pi;
[n,Wn] = buttord (Wp,Ws,rp,rs,'s');
[b,a] = butter (n,Wn,'bandpass','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';
9. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada
window Editor.

10. Catat syntax beserta hasil simulasi Band Pass Filter Butterworth
analog.

11. Tuliskan syntax berikut ini pada window Editor untuk membuat
simulasi Band Stop Filter Butterworth analog:

Wp = [250,750];
Ws = [100,800];
rp = 9;
rs = 25;
fs = [ 0:1:800]/2*pi;
[n,Wn] = buttord (Wp,Ws,rp,rs,'s');
[b,a] = butter (n,Wn,'stop','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';

12. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada
window Editor.

13. Catat syntax beserta hasil simulasi Band Stop Filter Butterworth
analog.

B. Filter Chebyshev Analog:

1. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi Low Pass Filter Chebyshev analog:

Wp = 100;
Ws = 300;
rp = 1;
rs = 20;
fs = [ 0:1:100]/2*pi;
[n,Wn] = cheb1ord (Wp,Ws,rp,rs,'s');
[b,a] = cheby1 (n,rp,Wn,'low','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';

2. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

3. Catat syntax beserta hasil simulasi Low Pass Filter Chebyshev analog.

4. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi High Pass Filter Chebyshev analog:

Wp = 500;
Ws = 300;
rp = 5;
rs = 10;
fs = [ 0:1:100]/2*pi;
[n,Wn] = cheb1ord (Wp,Ws,rp,rs,'s');
[b,a] = cheby1 (n,rp,Wn,'high','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';
5. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada
window Editor.

6. Catat syntax beserta hasil simulasi High Pass Filter Chebyshev analog.

7. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi Band Pass Filter Chebyshev analog:

Wp = [400,600];
Ws = [100,700];
rp = 6;
rs = 20;
fs = [ 0:1:700]/2*pi;
[n,Wn] = cheb1ord (Wp,Ws,rp,rs,'s');
[b,a] = cheby1 (n,rp,Wn,'bandpass','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';

8. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

9. Catat syntax beserta hasil simulasi Band Pass Filter Butterworth


analog.

10. Tuliskan syntax berikut ini pada window Editor untuk membuat
simulasi Band Stop Filter Chebyshev analog:

Wp = [250,750];
Ws = [100,800];
rp = 9;
rs = 25;
fs = [ 0:1:800]/2*pi;
[n,Wn] = cheb1ord (Wp,Ws,rp,rs,'s');
[b,a] = cheby1 (n,rp,Wn,'stop','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';

11. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada
window Editor.

12. Catat syntax beserta hasil simulasi Band Stop Filter Chebyshev
analog.

C. Filter Elliptic Analog:

1. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi Low Pass Filter Elliptic analog:

Wp = 100;
Ws = 300;
rp = 1;
rs = 20;
fs = [ 0:1:100]/2*pi;
[n,Wn] = ellipord (Wp,Ws,rp,rs,'s');
[b,a] = ellip (n,rp,rs,Wn,'low','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';

2. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

3. Catat syntax beserta hasil simulasi Low Pass Filter Elliptic analog.

4. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi High Pass Filter Elliptic analog:

Wp = 500;
Ws = 300;
rp = 5;
rs = 10;
fs = [ 0:1:100]/2*pi;
[n,Wn] = ellipord (Wp,Ws,rp,rs,'s');
[b,a] = ellip (n,rp,rs,Wn,'high','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';

5. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

6. Catat syntax beserta hasil simulasi High Pass Filter Elliptic analog.

7. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi Band Pass Filter Elliptic analog:

Wp = [400,600];
Ws = [100,700];
rp = 6;
rs = 20;
fs = [ 0:1:700]/2*pi;
[n,Wn] = ellipord (Wp,Ws,rp,rs,'s');
[b,a] = ellip (n,rp,rs,Wn,'bandpass','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';

8. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

9. Catat syntax beserta hasil simulasi Band Pass Filter Elliptic analog.

10. Tuliskan syntax berikut ini pada window Editor untuk membuat
simulasi Band Stop Filter Elliptic analog:

Wp = [250,750];
Ws = [100,800];
rp = 9;
rs = 25;
fs = [ 0:1:800]/2*pi;
[n,Wn] = ellipord (Wp,Ws,rp,rs,'s');
[b,a] = ellip (n,rp,rs,Wn,'stop','s');
h = freqs (b,a,fs);
mag = 20*log10 (abs(h));
phase = angle (h*(180/pi));
subplot (2,1,1);
plot (fs,mag);
xlabel 'W(rad/s)';
ylabel 'magnitude';
subplot (2,1,2);
plot (fs,phase);
xlabel 'W(rad/s)';
ylabel 'phase';
11. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada
window Editor.

12. Catat syntax beserta hasil simulasi Band Stop Filter Elliptic analog.

D. Filter Bessel Analog:

1. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi Low Pass Filter Bessel analog:

[b,a] = besself (6,100);


[h,w] = freqs (b,a);
subplot (2,1,1);
plot (w,20*log10 (abs(h)));
ylabel 'magnitude';
subplot (2,1,2);
plot (w,180*unwrap(angle (h)));
xlabel 'frequency)';
ylabel 'phase';

2. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

3. Catat syntax beserta hasil simulasi Low Pass Filter Bessel analog.

4. Tuliskan syntax berikut ini pada window Editor untuk membuat


simulasi High Pass Filter Bessel analog:

[b,a] = besself (6,500,’high’);


[h,w] = freqs (b,a);
subplot (2,1,1);
plot (w,20*log10 (abs(h)));
ylabel 'magnitude';
subplot (2,1,2);
plot (w,180*unwrap(angle (h)));
xlabel 'frequency)';
ylabel 'phase';

5. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

6. Catat syntax beserta hasil simulasi High Pass Filter Bessel analog.
7. Tuliskan syntax berikut ini pada window Editor untuk membuat
simulasi Band Pass Filter Bessel analog:

[b,a] = besself (6,[400,600]);


[h,w] = freqs (b,a);
subplot (2,1,1);
plot (w,20*log10 (abs(h)));
ylabel 'magnitude';
subplot (2,1,2);
plot (w,180*unwrap(angle (h)));
xlabel 'frequency)';
ylabel 'phase';

8. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada


window Editor.

9. Catat syntax beserta hasil simulasi Band Pass Filter Bessel analog.

10. Tuliskan syntax berikut ini pada window Editor untuk membuat
simulasi Band Stop Filter Bessel analog:

[b,a] = besself (6,[250,750],’stop’);


[h,w] = freqs (b,a);
subplot (2,1,1);
plot (w,20*log10 (abs(h)));
ylabel 'magnitude';
subplot (2,1,2);
plot (w,180*unwrap(angle (h)));
xlabel 'frequency)';
ylabel 'phase';

11. Tampilkan hasil simulasi dengan cara meng-klik ikon Run pada
window Editor.

12. Catat syntax beserta hasil simulasi Band Stop Filter Bessel analog.

Anda mungkin juga menyukai