Anda di halaman 1dari 16

PRAKTIK PENGOLAHAN SINYAL DIGITAL

Jobsheet 3:

Nursia Tae Yuniarum Putri


TE-3A /15

PROGRAM STUDI T.TELEKOMUNIKASI


JURUSAN TEKNIK ELEKTRO
POLITEKNIK NEGERI SEMARANG
2017
Tabel 3.1 Pergeseran waktu pada sinyal kontinyu
No Hasil Gambar Listing
t = [-10:0.01:10];
1. y = 2*sin(t);
plot(t,y,'--
r','MarkerEdgeColor
','b','LineWidth',2
)
title('Y(t)=2sin(t)
','color','r')
xlabel('Sumbu
Waktu','color','m')
ylabel('Amplitudo
Sinyal','color','m'
)
grid on

t = [-10:0.01:10];
2. y = 2*sin(t-3);
plot(t,y,':ro','Mar
kerEdgeColor','y','
LineWidth',2)
title('Y(t)=2sin(t-
3)','color','c')
xlabel('Sumbu
Waktu','color','m')
ylabel('Amplitudo
Sinyal','color','m'
)

1
t = [-10:0.01:10];
3. y = 2*sin(t-5);
plot(t,y,':g','Line
Width',6)
title('Y(t)=2sin(t-
5)','color','r')
xlabel('Sumbu
Waktu','color','m')
ylabel('Amplitudo
Sinyal','color','m'
)
grid on

t = [-10:0.01:10];
4. y = 2*sin(t+2);
plot(t,y,'-
.b','LineWidth',3)
title('Y(t)=2sin(t+
2)','color','r')
xlabel('Sumbu
Waktu','color','m')
ylabel('Amplitudo
Sinyal','color','m'
)

2
t = [-10:0.01:10];
5. y = 2*sin(t+6);
plot(t,y,'-
y','LineWidth',4)
title('Y(t)=2sin(t+
6)','color','k')
xlabel('Sumbu
Waktu','color','m')
ylabel('Amplitudo
Sinyal','color','m'
)
grid on

t = [-10:0.01:10];
6. y = 3*cos(t);
plot(t,y,':c','Line
Width',4)
title('Y(t)=3cos(t)
','color','k')
xlabel('Sumbu
Waktu','color','m')
ylabel('Amplitudo
Sinyal','color','m'
)

3
t = [-10:0.01:10];
7. y = 3*cos(t-4);
plot(t,y,'-
.k','LineWidth',4)
title('Y(t)=3cos(t-
4)','color','m')
xlabel('Sumbu
Waktu','color','m')
ylabel('Amplitudo
Sinyal','color','m'
)
grid on

t = [-10:0.01:10];
8. y = 3*cos(t-6);
plot(t,y,'--
r','LineWidth',3)
title('Y(t)=3cos(t-
6)','color','m')
xlabel('Sumbu Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')

4
t = [-10:0.01:10];
9. y = 3*cos(t+3);
plot(t,y,'--
c','LineWidth',3)
title('Y(t)=3cos(t+
3)','color','m')
xlabel('Sumbu Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')
grid on

t = [-10:0.01:10];
10 y = 3*cos(t+5);
plot(t,y,'-
rx','MarkerEdgeColo
r','g')
title('Y(t)=3cos(t+
5)','color','r')
xlabel('Sumbu Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')

5
Tabel 3.2 Pencerminan pada sinyal kontinyu
No Hasil Gambar Listing
t = [-
1. 10:0.01:10];
x = 2*sin(t);
y = 2*sin(-t);
plot(t,x,'--
y','LineWidth',3)
title('Sinyal
Sinus','color','r
')
xlabel('Sumbu
Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')
hold on
plot(t,y,':g','Li
neWidth',3)
hold off
legend('2
sin(t)','2 sin(-
t)');

t = [-
3. 10:0.01:10];
x =3*cos(t);
y =-3*cos(t);
plot(t,x,'-
.m','LineWidth',3
)
title('Sinyal
Cosinus','color',
'r')
xlabel('Sumbu
Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')
hold on
plot(t,y,'-
b','LineWidth',3)
hold off
legend('3
cos(t)','3 cos(-
t)');

6
Tabel 3.3 Penskalaan waktu pada sinyal kontinyu
No Hasil Gambar Listing
t = [-
1. 10:0.01:10];
x = 2*sin(t);
y = 2*sin(2*t);
z = 2*sin(t/2);
plot(t,x,':b','Li
neWidth',3)
title('Sinyal
Sinus','color','r
')
xlabel('Sumbu
Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')
hold on
plot(t,y,'--
r','LineWidth',2)
hold on
plot(t,z,'-
.g','LineWidth',4
)
hold off

x = 2*cos(t);
4. y = 2*cos(4*t);
z = 2*cos(t/4);
plot(t,x,'-
.k','LineWidth',3
)
title('Sinyal
Cosinus','color',
'r')
xlabel('Sumbu
Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')
hold on
plot(t,y,':m','Li
neWidth',2)
hold on
plot(t,z,'-
r','LineWidth',3)
hold off

7
Tabel 3.4 Pergeseran waktu pada sinyal diskrit
No Hasil Gambar Listing
n = [-10:1:10];
1. y =
2*sin(2*pi*n/16);
stem(n,y,'--
r','fill','LineWi
dth',2)
title('Sinyal
Sinus','color','k
')
xlabel('Sumbu
Waktu
(t)','color','m')
ylabel('Amplitudo
Sinyal
(A)','color','m')

n = [-10:1:10];
2. y =
2*sin(2*pi*(n-
3)/16);
stem(n,y,'--
b','LineWidth',2)
title('Sinyal
Sinus','color','k
')
xlabel('Sumbu
Waktu
(t)','color','m')
ylabel('Amplitudo
Sinyal
(A)','color','m')
Grid on

8
n = [-10:1:10];
3. y =
2*sin(2*pi*(n-
5)/16);
stem(n,y,':m','fi
ll','LineWidth',2
)
title('Sinyal
Sinus','color','k
')
xlabel('Sumbu
Waktu
(t)','color','m')
ylabel('Amplitudo
Sinyal
(A)','color','m')

n = [-10:1:10];
4. y =
2*sin(2*pi*(n+2)/
16);
stem(n,y,':gd','M
arkerEdgeColor','
k','LineWidth',3)
title('Sinyal
Sinus','color','k
')
xlabel('Sumbu
Waktu
(t)','color','m')
ylabel('Amplitudo
Sinyal
(A)','color','m')
grid on

9
n = [-10:1:10];
5. y =
2*sin(2*pi*(n+6)/
16);
stem(n,y,':cp','f
ill','MarkerEdgeC
olor','r','LineWi
dth',3)
title('Sinyal
Sinus','color','k
')
xlabel('Sumbu
Waktu
(t)','color','m')
ylabel('Amplitudo
Sinyal
(A)','color','m')

n = [-10:1:10];
6. y =
3*cos(2*pi*n/16);
stem(n,y,'-
.b^','MarkerEdgeC
olor','y','LineWi
dth',3)
title('Sinyal
Cosinus','color',
'm')
xlabel('Sumbu
Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')
grid on

10
n = [-10:1:10];
7. y =
3*cos(2*pi*(n-
2)/16);
stem(n,y,'-
.r^','fill','Mark
erEdgeColor','c',
'LineWidth',2)
title('Sinyal
Cosinus','color',
'm')
xlabel('Sumbu
Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')

n = [-10:1:10];
8. y =
3*cos(2*pi*(n-
4)/16);
stem(n,y,'-
.yx','fill','Mark
erEdgeColor','r',
'LineWidth',3)
title('Sinyal
Cosinus','color',
'm')
xlabel('Sumbu
Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')
grid on

11
n = [-10:1:10];
9. y =
3*cos(2*pi*(n+3)/
16);
stem(n,y,'-
ko','MarkerEdgeCo
lor','c','LineWid
th',2)
title('Sinyal
Cosinus','color',
'm')
xlabel('Sumbu
Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')

n = [-10:1:10];
10. y =
3*cos(2*pi*(n+5)/
16);
stem(n,y,'-
b+','MarkerEdgeCo
lor','m','LineWid
th',2)
title('Sinyal
Cosinus','color',
'm')
xlabel('Sumbu
Waktu
(t)','color','k')
ylabel('Amplitudo
Sinyal
(A)','color','k')
grid on

12
Tabel 3.5 Pencerminan pada sinyal diskrit
No Hasil Gambar Listing
n = [-10:1:10];
1. y = 2*sin(n);
x = 2*sin(-n);
subplot(211);
stem(n,y,':go','MarkerEd
geColor','m','LineWidth'
,2)
title('Sinyal
Sinus','color','m')
xlabel('Sumbu Waktu
(t)','color','k')
ylabel('Amplitudo Sinyal
(A)','color','k')
legend('2 sin(n)');
hold on
subplot(212);
stem(n,x,'--
r+','MarkerEdgeColor','y
','LineWidth',2)
title('Sinyal
Sinus','color','m')
xlabel('Sumbu Waktu
(t)','color','k')
ylabel('Amplitudo Sinyal
(A)','color','k')
legend('2 sin(-n)');

n = [-10:1:10];
2. y = 3*cos(n);
x = -3*cos(n);
subplot(211);
stem(n,y,':m','fill','Ma
rkerEdgeColor','r','Line
Width',2)
title('Sinyal
Cosinus','color','m')
xlabel('Sumbu Waktu
(t)','color','k')
ylabel('Amplitudo Sinyal
(A)','color','k')
legend('3 cos(n)');
hold on
subplot(212);
stem(n,x,'--
c+','MarkerEdgeColor','y
','LineWidth',3)
title('Sinyal
Cosinus','color','m')
xlabel('Sumbu Waktu
(t)','color','k')
ylabel('Amplitudo Sinyal
(A)','color','k')
legend('3 cos (-n)');

13
Tabel 3.6 Penskalaan waktu pada sinyal diskrit
No Hasil Gambar
1.

n = [-10:1:10];
y = 2*sin(2*pi*n/16);
x = 2*sin(2*pi*n/8);
z = 2*sin(2*pi*n/10);
subplot(311);
stem(n,y,'--bo','fill','MarkerEdgeColor','m','LineWidth',2)
title('Sinyal Sinus','color','m')
legend('2 sin(2pin/16)','Location','Best');
hold on
subplot(312);
stem(n,x,'-.gx','MarkerEdgeColor','y','LineWidth',2)
ylabel('Amplitudo Sinyal (A)','color','k')
legend('2 sin(2pin/8)','Location','Best');
hold on
subplot(313);
stem(n,z,':k^','fill','MarkerEdgeColor','r','LineWidth',2)
xlabel('Sumbu Waktu (t)','color','k')
legend('2 sin(2pin/10)','Location','Best');

14
2.

n = [-10:1:10];
y = 3*cos(2*pi*n/16);
x = 3*cos(2*pi*n/8);
z = 3*cos(2*pi*n/10);
subplot(311);
stem(n,y,'--y>','fill','MarkerEdgeColor','g','LineWidth',2)
title('Sinyal Cosinus','color','m')
legend('3 cos(2pin/16)');
hold on
subplot(312);
stem(n,x,':mo','MarkerEdgeColor','b','LineWidth',2)
ylabel('Amplitudo Sinyal (A)','color','k')
legend('3 cos(2pin/8)');
hold on
subplot(313);
stem(n,z,'-.cd','fill','MarkerEdgeColor','r','LineWidth',2)
xlabel('Sumbu Waktu (t)','color','k')
legend('3 cos(2pin/10)');

15

Anda mungkin juga menyukai