
SNR1 = [5    10    15    20    25    30];
SNR2 = [-5     0     5    10    15    20];

full1 = [0.0186 0.0052 0.0023 0.0011 0.001 0.0006];
full2 = [0.2113 0.1039 0.0466 0.0297 0.0245 0.0231];

L11 = [0.0208  0.0059 0.0031 0.0014 0.0014 0.0019];
L31 = [0.0196 0.0053 0.0024 0.0011  0.0011 0.0007];
L51 = [0.0186 0.0052 0.0023 0.0011  0.001 0.0006];

L12 = [0.2381  0.1498 0.1099 0.0899 0.0956 0.0887];
L32 = [0.2132 0.1055  0.0494 0.0327 0.0266 0.0267];
L52 = [0.2117  0.104  0.0466 0.0297 0.0245  0.0231];

subplot(2,2,1)

semilogy(SNR1,L11,'--x')
hold on
semilogy(SNR1,L31,'--o')
semilogy(SNR1,full1,'-*')

semilogy(SNR2,full2,'-*')
semilogy(SNR2,L12,'--x')
semilogy(SNR2,L32,'--o')

legend('PSP (L=1)', 'PSP (L=3)','Exh. Search' , 3)

xlabel 'SNR'
ylabel 'BER'
title 'BER vs. SNR for Exh. Search and PSP'
