You are on page 1of 11

TUGAS INDIVIDU

ISYARAT DAN SISTEM


Convolution of Continuous Time and Discrete Time Signals.
Diajukan untuk memenuhi tugas mata kuliah Isyarat dan Sistem
Dibimbing oleh Bapak Ariadie Chandra Nugraha, ST., MT.

Disusun oleh:

Fadly Septian Haryono NIM 21538144022

TEKNIK ELEKTRO
FAKULTAS TEKNIK
UNIVERSITAS NEGERI YOGYAKARTA
TAHUN 2021
FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA

H Semester
3
ISYARAT DAN SISTEM
Lab #6
Convolution of Continuous Time and Discrete Time
Signals.

Lab Task 1
A linear time-invariant system is described by the impulse response

ℎ (𝑡 ) = { 1 − 𝑡 0≤𝑡≤1
0, 𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒.
Calculate the response of the system to the input signal

𝑥(𝑡) = {1, 0 ≤ 𝑡 ≤ 2
0 𝑒𝑙𝑠𝑒𝑤𝑒ℎ𝑒𝑟𝑒.
(Jawaban)
FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA

H Semester
3
ISYARAT DAN SISTEM
Lab #6
Convolution of Continuous Time and Discrete Time
Signals.

Lab Task 2
We will consider the same signals used in the previous example. Therefore, the problem is to
compute the impulse response ℎ(𝑡) of a system when the response of the system to the input 𝑥(𝑡)
= 0 ≤ 𝑡 ≤ 2 is the signal 𝑦(𝑡), which is depicted in the previous figure.
(Jawaban)
Program MATHLAB
set (gcf, 'NumberTitle', 'off')
set (gcf, 'Name', 'Nama= Fadly Septian Haryono — NIM= 21538144022')
t=0.01:0.01:1;
h=1-t;
h=[h zeros(size(h))];
x=ones(size(h));
for i=1:(length(h))
y1(i)=0;
FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA

H Semester
3
ISYARAT DAN SISTEM
Lab #6
Convolution of Continuous Time and Discrete Time
Signals.

for j=1:length(x)
if i+1-j>0
y1(i)=y1(i)+x(j)*h(i+1-j);
end
end
end
t=0:0.01:1.99;
subplot(1,1,1)
plot(t,y1)
grid on
title('Respond sistem')

Lab Task 3
Suppose that a linear time-invariant (LTI) system is described by the impulse response ℎ(𝑡) =
𝑒−𝑡𝑢(𝑡). Compute the response of the system to the input signal without using 𝑐𝑜𝑛𝑣 command
0.6, − 1 < 𝑡 < 0.5
X(𝑡) = {0.3, 0.5 < 𝑡 < 3
0, 𝑡 < −1 𝑎𝑛𝑑 𝑡 > 3
FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA

H Semester
3
ISYARAT DAN SISTEM
Lab #6
Convolution of Continuous Time and Discrete Time
Signals.

(Jawaban)
set (gcf, 'NumberTitle', 'off')
set (gcf, 'Name', 'Nama= Fadly Septian Haryono — NIM= 21538144022')
x=[0.6*ones(1,1.5/0.01) 0.3*ones(1,2.5/0.01)];
t=-1:0.01:2.99;
h=exp(-1*t(101:end));
y2=conv(h,x);
t=-0.99:0.01:5.99;
subplot(1,1,1)
plot(t,y2)
grid on
title('Respond sistem')

Lab Task 4
Suppose that the impulse response of a system is

ℎ[𝑛] = {
𝑛, − 5 ≤ 𝑛 ≤ 5 .
0,
𝑒𝑙𝑠𝑒𝑤ℎ𝑒𝑟𝑒

Without using 𝑐𝑜𝑛𝑣 command compute the response of the system to the input signal
FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA

H Semester
3
ISYARAT DAN SISTEM
Lab #6
Convolution of Continuous Time and Discrete Time
Signals.

(Jawaban)
set (gcf, 'NumberTitle', 'off')
set (gcf, 'Name', 'Nama= Fadly Septian Haryono — NIM= 21538144022')
t = -1:0.001:4;
h = (t).*((t>=-5)-(t>=5));
x = ((t>=0)-(t>=4));
N = length(t);
N1 = 2*N-1;
a = 2*min(t);
b = 2*max(t);
t1 = a:(b-a)/(N1-1):b;
y = conv(x,h);
subplot 311;plot(t,h,'b');xlabel('t ->');ylabel('h(t) ->');
title('Grafik Impulse Response');grid on;
subplot 312;plot(t,x,'r');xlabel('t ->');ylabel('x(t) ->');
title('Grafik Input Signal');grid on;
subplot 313;plot(t1,y,'g');xlabel('t ->');ylabel('y(t) ->');
title('Grafik output signal');grid on;xlim([min(t) max(t)]);
FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA

H Semester
3
ISYARAT DAN SISTEM
Lab #6
Convolution of Continuous Time and Discrete Time
Signals.

Lab Task 5
Write a function that computes and plots the convolution of two sequences. The function must
accept as arguments the two signals and the time intervals in which the sequence are defined.
Execute your function for 𝑥[𝑛] = 𝑛2, −2 ≤ 𝑛 ≤ 2
(Jawaban)\
set (gcf, 'NumberTitle', 'off')
set (gcf, 'Name', 'Nama= Fadly Septian Haryono — NIM= 21538144022')
t = -1:0.001:4;
h = (t.*t).*((t>=-2)-(t>=2));
x = (1./t+2).*((t>=-1)-(t>=3));
N = length(t);
N1 = 2*N-1;
a = 2*min(t);
b = 2*max(t);
t1 = a:(b-a)/(N1-1):b;
y = conv(x,h);
subplot 311;plot(t,h,'b');xlabel('t ->');ylabel('h(t) ->');
title('Grafik Impulse Response');grid on;
FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA

H Semester
3
ISYARAT DAN SISTEM
Lab #6
Convolution of Continuous Time and Discrete Time
Signals.

subplot 312;plot(t,x,'r');xlabel('t ->');ylabel('x(t) ->');


title('Grafik Input Signal');grid on;
subplot 313;plot(t1,y,'g');xlabel('t ->');ylabel('y(t) ->');
title('Grafik output signal');grid on;xlim([min(t) max(t)]);
FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA

H Semester
3
ISYARAT DAN SISTEM
Lab #6
Convolution of Continuous Time and Discrete Time
Signals.

Lab Task 6
Compute the impulse response of system for which you have computed the system response in the
above task and verify the answer
(Jawaban)

Kesimpulan
Respons (atau output) dari suatu sistem terhadap sinyal input apa pun dihitung dengan konvolusi
sinyal input dengan respon impuls sistem. Respons (atau output) dari suatu sistem terhadap sinyal
input apa pun dihitung dengan konvolusi sinyal input dengan respon impuls sistem.

simbol ‘*’ menunjukkan simbol konvolusi. Proses komputasi yang diikuti di lab sebelumnya adalah
cara analitis untuk menurunkan konvolusi antara dua sinyal. dengan menggunakan perintah "𝑐𝑜𝑛𝑣"
memungkinkan perhitungan langsung dari konvolusi antara dua sinyal. Misalkan respon impuls dari
sistem (𝑡) dan output dari sistem (𝑡) tersedia dan kita ingin menghitung sinyal input (𝑡) yang
diterapkan ke sistem untuk menghasilkan output y(t). Proses ini disebut deconvolution dan
FAKULTAS TEKNIK UNIVERSITAS NEGERI YOGYAKARTA

H Semester
3
ISYARAT DAN SISTEM
Lab #6
Convolution of Continuous Time and Discrete Time
Signals.

diimplementasikan di MATLAB menggunakan perintah deconv yang bisa diterapkan pada sinyal
waktu continuous dan diskrit.

You might also like