Professional Documents
Culture Documents
BPSK
2209106043
2010
Merancang maping BPSK menggunakan MATLAB:
Pemancar:
data =
Columns 1 through 16
1 1 1 1 1 0 1 1 0 0 1 0 0 0 1 1
Columns 17 through 32
1 0 0 1 1 0 1 0 0 1 0 1 1 1 0 1
Columns 33 through 48
1 0 1 0 0 1 0 1 0 1 1 0 0 0 0 0
Columns 49 through 50
1 0
List Program:
data=randint(1,50,[0 1],1);
b=(2*data)-1;
gt=ones(64,1);
s=gt*b
s=reshape(s,1,[]);
t=0:1/64:50-(1/64);
subplot(211),plot(t,s);
basis=sqrt(2)*cos(2*pi*t);
qpsk=s.*basis;
subplot(212),plot(t,qpsk);
Pada penerima ini sinyal BPSK yang dihasilkan akan mendapatkan noise pada saat
pentransmisian.
List Program:
r=awgn(bpsk,1)
figure(2),plot(t,r);
xlabel('Waktu (detik)');
ylabel('Amplitudo');
List Program:
y=r.*basis;
figure(3),plot(t,y);
xlabel('Waktu (detik)');
ylabel('Amplitudo');
List Program:
y=reshape(y,64,[]);
z=ones(1,64)*y/64;
figure(4),plot(zI,'o');
title('Plot Konstelasi BPSK');
xlabel('Waktu (detik)');
ylabel('Amplitudo');
bE=sign(z)