Professional Documents
Culture Documents
data1=[];
data2=[];
sb=16;
% s bit iu ch l 16 bit
for k=1:sb;
% nu bit = 0
% th bin s = -1
end
if mod(k,2)==1;
% nu k l
% thi gian ly mu
somau=length(data1); % s mu = di data1
Tm=T/somau;
t=[0:Tm:T-Tm];
figure(1);
% to ca s nh th nht
% chia ca s nh thnh 3 phn v nh dng data phn th
subplot(3,1,1);
nht
plot(t,data);
% to dng li cho th
% chia ca s nh thnh 3 phn v nh dng
data phn th 2
plot(t,data1);
ylim([-4 4]);
xlim([0 0.11*10^(-6)]);
grid on;
subplot(3,1,3);
plot(t,data2);
% tn s sng mang IF
Ipsk=data1.*smI;
Qpsk=data2.*smQ;
PSK4=Ipsk + Qpsk;
figure(2);
% to ca s nh th 2
% v Ipsk
ylim([-4 4]);
xlim([0 0.11*10^(-6)]);
title('Ipsk');
grid on;
subplot(3,1,2);
plot(t,Qpsk);
ylim([-4 4]);
% v Qpsk
xlim([0 0.11*10^(-6)]);
title('Qpsk');
grid on;
subplot(3,1,3);
plot(t,PSK4);
% v 4PSK
ylim([-4 4]);
xlim([0 0.11*10^(-6)]);
grid on;
title('tin hieu dieu che 4PSK');
% trn nng tn
Rf= 1.5*10^9;
Ac=4;
% tn s cao tn RF
% bin tn s cao tn
% to ca s nh th 3
% v tn hiu cao tn
% t thang chia trn th