MATLAB Answers

Differential Phase Shift Keying (DPSK)

143 views (last 30 days)
AHMAD SAUFUDIN
AHMAD SAUFUDIN on 12 Dec 2020
Answered: Swetha Polemoni on 16 Dec 2020
How to convert PSK coding to DPSK code
for i=1:6
for j=(i-1)*100:i*100
if(n(i)==1)
s(j+1)=y1(j+1);
else
s(j+1)=y2(j+1);
end
end
end

  0 Comments

Sign in to comment.

Answers (1)

Swetha Polemoni
Swetha Polemoni on 16 Dec 2020
Hi AHMAD SAUFUDIN,Â
It is my understanding that you want to modulate your data using DPSK.
  1. If you have your message data, feel free to use "dpskmod"Â inbulit matlab function.
  2. If you have access to PSK modulated data, use "pskdemod" for demodulating it first and use dpskmod to get dpsk modulated data.
  3. Else if you want to do it from scratch, look into the following code snippet
N=10;
x=randi(2,N,1)-1;
delaybit=1;
y=zeros(N,1);
for i=1:N
y(i)=~xor(x(i),delaybit);
delaybit=y(i);
end
Further you can multiply carrier to y to get DPSK.

  0 Comments

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!