% plot_MCSimple - wrapper for automatic generation of BER plot

% load data from previous run of MCNarrowBandDriver
load MCNarrowBandData;

%% Plot Results with confidence intervals
errorbar( EsOverN0dB, ErrorRate, ConfInt,'-o' );
set(gca, 'YScale','log' );
grid
xlabel( 'E_s/N_0 (dB)' );
ylabel( 'Symbol Error Rate' );

% plot theretical Pe for comparison (tX diversity is the appropriate
% assumption)
hold on
plot_PeRayleighDiversityTX
grid on
legend('Simulated L=2', 'L=1','L=2','L=3','L=4','L=5','AWGN','Location','SouthWest')
axis( 'tight')
hold off


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