Tugas 2 Sinyal Sistem

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

Nama : Khairul Anam

Nim : F1B022100

Matkul : Sinyal dan Sistem – C

Tugas 3.17

D.

Kodingan
clear all;
clc;
t = -10 : 0.001 : 10;
x1 = exp(-(t-1));
x2 = cos(3*(t-1));
x=x1.*x2;
plot (t,x);
axis([-5 8 -6 6]);
title('3.17 bag.d');
xlabel('waktu');
ylabel('fungsi x');

Grafik
Tugas 3.20

B. x(t) = 3r (t-1.5)

Kodingan
clear all;
clc;
t = -10 : 0.001 : 10;
x = 3*((t-1.5)>=0).*(t-1.5);

plot (t,x);
axis([-5 8 -6 6]);
title('3.20 bag.b');
xlabel('waktu');
ylabel('fungsi x');

Grafik
Tugas 3.21

C. x(t) = 2u(t) - (t-1) - u(t+1)

Kodingan
clear all;
clc;
t = -10 : 0.001 : 10;
x = -2*((t)>=0)-1*((t-1)>=0)-1*((t+1)>=0);

plot (t,x);
axis([-5 8 -6 6]);
title('3.21 bag.c');
xlabel('waktu');
ylabel('fungsi x');

Grafik
Tugas 3.25

Signal: X(t) = 2u (t+1) – 2r (t+1) + 2u (t-1)

Kodingan
clear all;
clc;
t = -10 : 0.001 : 10;
x = 2*((t+1)>=0)-2*((t+1)>=0).*(t+1)+2*((t-1)>=0).*(t-1)+2*((t-1)>=0);

plot (t,x);
axis([-5 8 -6 6]);
title('3.25 bag.a');
xlabel('waktu');
ylabel('fungsi x');

Grafik

You might also like