- If you have your message data, feel free to use "dpskmod"Â inbulit matlab function.
- If you have access to PSK modulated data, use "pskdemod" for demodulating it first and use dpskmod to get dpsk modulated data.
- Else if you want to do it from scratch, look into the following code snippet
Differential Phase Shift Keying (DPSK)
62 views (last 30 days)
Show older comments
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
Answers (1)
Swetha Polemoni
on 16 Dec 2020
Hi AHMAD SAUFUDIN,Â
It is my understanding that you want to modulate your data using DPSK.
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
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!