about dpsk matlab cdes

Status
Not open for further replies.

anup kumar

Newbie level 1
Joined
Sep 2, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,286
i want matlab codes for dpsk modulation & demodulation
 

Kumar, this is very simple. Here are my functions:

function [Passband] = DPSK_mod(Baseband)

%%The DPSK reference phase
dk_1 = 1 ;
N = length(Baseband);

%%The DPSK feedback loop
for j = 1 : N

Passband(j) = not(xor(dk_1,Baseband(j)));
dk_1 = Passband(j) ;

end

%% The Amplitude level shifter

Passband = 2*Passband -1




%%% The demodulator
function [Baseband] = DPSK_demod(Passband)


%% The Amplitude level recovery

Passband = (Passband + 1)/2;

%%The DPSK reference phase
dk_1 = 1 ;
N = length(Passband);

%%The DPSK feedback loop
for j = 1 : N

Baseband(j) = not(xor(dk_1,Passband(j)));
dk_1 = Passband(j) ;

end
 
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…