Anda di halaman 1dari 25

1

KONVOLUSI KONTINYU
10 contoh metoda konvolusi
kontinyu menggunakan
DELHPI PROGRAM MATLAB

Kelompok 9 :
1. Yudha Tri Eka Putra
2. Irfan Hafizh
3. Alfred
2

KONVOLUSI
• Konvolusi Diskrit
• Konvolusi Kontinyu
3

Konvolusi Diskrit Konvolusi Kontinyu

y(n) = x(n) * h(n) y(t) = x(t) * h(t)

3
4

• Dua buah isyarat mempunyai rumusan sebagai


berikut :

1 0t 1 1t
x(t)  
1 h(t)  
2
0
 konvolusi dari x(t) dan h(t),
Carilah hasil 0
yanglain
y(t) = x(t) * h(t) t.lainnya
5

0t
1

x(t)  1 h ( t )   1 1t  2
0 yanglain
0 t.lainnya
0 
x( )  1
1 1 1  t   2
h (t   ) 
0 others 0 t
  .l ai nn y a
Batas atas : 0 + 1 = 1
Batas bawah : 1+2 = 3
1  2  t    1  t
h (t   ) 
0  .l ai nn y a
6

sinyal sinyal
x( ) h( )

sinyal h(t
Batas Nilai Integral :
 )
1. t<1
2. 1<t<2
3. 2<t<3
4. t > 3

ILLUSTRASI
7

Pada Saat t < 1



y(t)   x( )h(t

  )d
y(t) 
0
8

Pada saat 1<t<2


t 1
y (t )    
x ( )h ( t   ) d 
y(t)   x( ) y(t
  )d 0 
t 1
y(t) t 1 x( )h(t
y (t )   (1 )
 )
y(t)   (1)(1)d
0 (1 ) d 
y(t)  t 1
0

y(t)  t  1
9

Pada saat 2<t<3


y (t )    
x (  )h ( t   ) d 
1
y (t )   (1 )
(1 ) d 
t 2

y (t )  1  (t 
2)
y (t )  3  t
10

Pada saat t< 3 


y(t)   x( )h(t

  )d
y(t) 
0
11

Hasil Konvolusi y(t)


1t2
 t 1
2t3
y(t)  
3  t t lainnya
 0
Contoh Listing Program
1. Listing Percobaan 1
L=input('Banyaknya titik sampel(>=20): ’); // Nilai 20
f1=input('Besarnya frekuensi gel 1 adalah Hz: ‘); // Nilai 1
f2=input('Besarnya frekuensi gel 2 adalah Hz: ‘); // Nilai 0.5
teta1=input('Besarnya fase gel 1(dalam radiant): ‘); // Nilai 0
teta2=input('Besarnya fase gel 2(dalam radiant): ‘);/0.5
A1=input('Besarnya amplitudo gel 1: ‘); // Nilai 1
A2=input('Besarnya amplitudo gel 2: ‘); // Nilai 1
%Sinus pertama
t=1:L;
t=2*t/L;
y1=A1*sin(2*pi*f1*t + teta1*pi);
subplot(3,1,1)
stem(y1)
%Sinus kedua
t=1:L;
t=2*t/L;
y2=A2*sin(2*pi*f2*t + teta2*pi);
subplot(3,1,2)
stem(y2)
Hasil Percobaan 1

Hasil Percobaan 1
2. Listing Percobaan 2
L=input('Banyaknya titik sampel(>=20): ');
f1=input('Besarnya frekuensi gel 1 adalah Hz: ');
f2=input('Besarnya frekuensi gel 2 adalah Hz: ');
teta1=input('Besarnya fase gel 1(dalam radiant): ');
teta2=input('Besarnya fase gel 2(dalam radiant): ');
A1=input('Besarnya amplitudo gel 1: ');
A2=input('Besarnya amplitudo gel 2: ');
%Sinus pertama
t=1:L;
t=2*t/L;
y1=A1*sin(2*pi*f1*t + teta1*pi);
subplot(3,1,1)
stem(y1)
%Sinus kedua
t=1:L;
t=2*t/L;
y2=A2*sin(2*pi*f2*t + teta2*pi);
subplot(3,1,2)
stem(y2)
subplot(3,1,3)
stem(conv(y1,y2))
Percobaan 2

Hasil Percobaan 2
3. Listing Percobaan 3
%File Name: Noisin.m
%convolusi sinyal sinus bernoise dengan raise cosine;
n=-7.9:.5:8.1;
y=sin(4*pi*n/8)./(4*pi*n/8);
figure(1);
plot(y,'linewidth',2)
t=0.1:.1:8;
x=sin(2*pi*t/4);
figure(2);
plot(x,'linewidth’,2)

4. Listing Percobaan 4
Tambahkan listing nomer 4 ke listing no 3
t=0.1:.1:8;
noise=0.5*randn*sin(2*pi*10*t/4);
x_n=sin(2*pi*10*t/4);
figure(3);
plot(x_n,'linewidth',2)
Hasil Percobaan 3 & 4

Hasil Percobaan 3 Hasil Percobaan 4


5. Listing Percobaan 5
%File Name: Noisin.m
%convolusi sinyal sinus bernoise dengan raise cosine;
n=-7.9:.5:8.1;
y=sin(4*pi*n/8)./(4*pi*n/8);
figure(1);
plot(y,'linewidth',2)
t=0.1:.1:8;
x=sin(2*pi*t/4);
figure(2);
plot(x,'linewidth',2)
t=0.1:.1:8;
noise=0.5*randn*sin(2*pi*10*t/4);
x_n=sin(2*pi*10*t/4);
figure(3);
plot(x_n,'linewidth',2)
xy=conv(x_n,y);
figure(4);
plot(xy,'linewidth',2)
Hasil Percobaan 5

Hasil Percobaan 5
6. Listing Percobaan 6
%convolusi sinyal sinus bernoise dengan raise cossine;
n=-7.9:.5:8.1;
y=sin(4*pi*n/8)./(4*pi*n/8);
figure(1);
plot(y,'linewidth',2)
t=0.1:.1:8;
x=sin(2*pi*t/4);
figure(2);
t=0.1:.1:8;
noise=0.5*randn*sin(2*pi*10*t/4);
x_n=sin(2*pi*t/4);+noise;
figure(3);plot(x_n,'linewidth',2)
xy=conv(x_n,y);
figure(4);
plot(xy,'linewidth',2)
Hasil Percobaan 6

Hasil Percobaan 6
7. Listing Percobaan 7
%convolusi sinyal sinus bernoise dengan
raise cossine;
n=-7.9:.5:8.1;
y=sin(4*pi*n/8)./(4*pi*n/8);
figure(1);
plot(y,'linewidth',2)
t=0.1:.1:8;
x=sin(2*pi*t/4);
figure(2);
t=0.1:.1:8;
noise=0.5*randn*sin(2*pi*10*t/4);
x_n=sin(2*pi*t/4);+noise;
figure(3);plot(x_n,'linewidth',2)
xy=conv(x_n,y);
figure(4);
plot(xy,'linewidth',2)
Hasil Percobaan 7

Hasil Percobaan 7
8. Listing Percobaan 8
n=-7.9:.5:8.1;
y=sin(4*pi*n/8)./(4*pi*n/8);
figure(1);
plot(y,'linewidth',2)
t=0.1:.1:8;
x=sin(2*pi*t/4);
figure(2);
t=0.1:.1:8;
noise=0.5*randn*sin(2*pi*10*t/4);
x_n=sin(2*pi*t/4);+noise;
15

•TERIMAKASIH

Anda mungkin juga menyukai