% plot_NoisySinc - plot noisy linearly modulated signal

%% invoke plot_LinearModSinc to get signal
plot_LinearModSinc;

%% Determine energy per symbol
% total energy divided by number of symbols
Es = norm( Signal )^2/Ns;

%% Noisy signal
EsN0 = 10;          % desired Es/N0
NoiseVar = Es/EsN0; % variance for desired Es/N0
NoisySignal = addNoise( Signal, NoiseVar );

%% Plot
tt = (0 : length(Signal)-1 )/fsT;
plot(tt, Signal, tt, NoisySignal)
grid
xlabel('Time/T')
ylabel('Amplitude')

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