csp said:
Thanks ux for your help!!
Do you by any chance have the code also to do the dpsk modulation without using the simulink?
see this matlab help:
---------------------------
dpskmod
Differential phase shift keying modulation
Syntax
y = dpskmod(x,M)
y = dpskmod(x,M,phaserot)
y = dpskmod(x,M,phaserot,symbol_order)
_______________________________________
Examples
The example below plots the output of the dpskmod function. The image shows the possible transitions from each symbol in the DPSK signal constellation to the next symbol.
M = 4; % Use DQPSK in this example, so M is 4.
x = randint(500,1,M,13); % Random data
y = dpskmod(x,M,pi/8); % Modulate using a nonzero initial phase.
plot
% Plot all points, using lines to connect them.
best regards