% plot_pi4DQPSKTrajectory - complex plane signal trajectory

%% Parameters:
fsT      = 20;
L        = 10;
Alphabet = -3:2:3;                          % 4-PAM
Priors   = ones( size( Alphabet) ) / length(Alphabet);
Ns       = 200;                             % number of symbols
Pulse    = RaisedCosPulse( L, fsT, 0.5);    % RC pulse

%% symbols and Signal using our functions
Symbols = RandomSymbols(Ns, Alphabet, Priors);
Symbols = DPSK(Symbols, pi/4);
Signal  = LinearModulation(Symbols,Pulse,fsT);
%% plot

plot( real( Signal(L/2*fsT:end-L/2*fsT) ), imag( Signal(L/2*fsT:end-L/2*fsT) ), ...
    real(Symbols), imag(Symbols), 'ro')
grid
xlabel('Real')
ylabel('Imaginary')
axis('equal')

%% Store name of script for automated figure generation
ScriptName = mfilename;