% plot_MCVA - wrapper for automatic generation of BER plot

% load data from previous run of MCVADriver
load MCVAData;

%% 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
hold on
plot_PeRayleighDiversityTX
grid on
legend('Simulated VA', '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;
