Académique Documents
Professionnel Documents
Culture Documents
NIM : C.431.16.0096
KELAS :B
MAKUL : SINYAL DAN SISTEM
TUGAS ASISTENSI
1. 1A.) Re{x(t)}= Ae cos(ῳ0 + 0)
at
Penyelesaian:
1. clc;
2. clear all;
3. f = 50;
4. a = 9;
5. A = 15;
6. phase = 0;
7. t = 0:0.001:0.1;
8. xt = A*exp(a*t).*(cos(2*pi*f*t+phase));
9. %Pembangkit Sinyal Kontinyu%
10. plot(t,xt)
11. subplot(2,1,1);
12. title('Sinyal Kontinyu');
13. xlabel('Waktu(t)');
14. ylabel('Amplitudo(v)');
15. grid on;
16. hold on;
17. %Pembangkit Sinyal Diskrit%
18. plot(t,xt)
19. subplot(2,1,2);
20. stem(t,xt,'r');
21. title('Sinyal Diskrit');
22. xlabel('Waktu(t)');
23. ylabel('Amplitudo(v)');
24. grid on;
25. hold on;
1 . B) x[n] = A cos (ῳ0 n + 0)
Penyelesaian:
1. clc;
2. clear all;
3. f = 50;
4. A = 3;
5. rho = 0;
6. t = 0:0.001:0.1;
7. xt = A*(cos(2*pi*f*t+rho));
8. %Pembangkit Sinyal Kontinyu%
9. plot(t,xt);
10. subplot(2,1,1);
11. title('Sinyal Kontinyu');
12. xlabel('Waktu(t)');
13. ylabel('Amplitudo(v)');
14. grid on;
15. hold on;
16. %Pembangkit Sinyal Diskrit%
17. plot(t,xt);
18. subplot(2,1,2);
19. stem(t,xt,'r');
20. title('Sinyal Diskrit');
21. xlabel('Waktu(t)');
22. ylabel('Amplitudo(v)');
23. grid on;
24. hold on;
𝜋 𝜋 𝜋
1 𝐶. 𝑥(𝑡) = cos ( ) 𝑡 + sin ( ) 𝑡 − 2 cos ( ) 𝑡
4 8 2
Penyelesaian:
1. clc;
2. clear all;
3. t = (1:100)/4;
4. x1 = cos(pi/4*t);
5. x2 = sin(pi/8*t);
6. x3 = 2*cos(pi/2*t);
7. xt = x1+x2-x3
8. %Pembangkit Sinyal Kontinyu%
9. plot(t,xt);
10. subplot(2,1,1);
11. title('Sinyal Kontinyu');
12. xlabel('Waktu(t)');
13. ylabel('Amplitudo(v)');
14. grid on;
15. hold on;
16. %Pembangkit Sinyal Diskrit%
17. plot(t,xt);
18. subplot(2,1,2);
19. stem(t,xt,'r');
20. title('Sinyal Diskrit');
21. xlabel('Waktu(t)');
22. ylabel('Amplitudo(v)');
23. grid on;
24. hold on;
𝜋 𝜋
1 𝐷. 𝑥(𝑡) = cos ( ) 𝑡 + cos ( ) 𝑡
3 6
Penyelesaian:
1. clc;
2. clear all;
3. t = (1:100)/4;
4. x1 = cos(pi/4*t);
5. x2 = cos(pi/6*t);
6. xt = x1+x2
7. %Pembangkit Sinyal Kontinyu%
8. plot(t,xt);
9. subplot(2,1,1);
10. title('Sinyal Kontinyu');
11. xlabel('Waktu(t)');
12. ylabel('Amplitudo(v)');
13. grid on;
14. hold on;
15. %Pembangkit Sinyal Diskrit%
16. plot(t,xt);
17. subplot(2,1,2);
18. stem(t,xt,'r');
19. title('Sinyal Diskrit');
20. xlabel('Waktu(t)');
21. ylabel('Amplitudo(v)');
22. grid on;
23. hold on;
3a