Professional Documents
Culture Documents
PSK
PSK
clc;
close;
f=5;
t=0:1/1000:1;
x=sin(2*3.14*f*t);
I=[0,1,1,0,1,0,0,1];
Xpsk=[];
x1=sin(2*3.14*f*t);
x2=-sin(2*3.14*f*t);
for n=1:length(I)
if(I(n)==1)
Xpsk=[Xpsk,x1];
elseif(I(n)~=1)
Xpsk=[Xpsk,x2];
end
end