Professional Documents
Culture Documents
Tugas 2 Sinyal Sistem
Tugas 2 Sinyal Sistem
Tugas 2 Sinyal Sistem
Nim : F1B022100
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
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
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