Additions:
- Correction of the weighted DFE function in EQ.m - Some evaluation scripts for FSO Data
This commit is contained in:
@@ -5,34 +5,37 @@ power = [28.02, 33.2, 37.5, 42.3, 46.3, 49.3, 53.4];
|
||||
power = string(power);
|
||||
num_pf_coeff = 4;
|
||||
taps_ffe = [300, 0, 0];
|
||||
taps_dfe = [5, 0, 0];
|
||||
M = 4;
|
||||
taps_dfe = [0, 0, 0];
|
||||
M = 4;
|
||||
trlength = 4096*4;
|
||||
x = 225:10:285;
|
||||
BER_PAM_4 = [];
|
||||
filter_length = 210;
|
||||
num_signal = 11;
|
||||
our_signal = 1;
|
||||
|
||||
for eq_method = 2
|
||||
for j = 4
|
||||
BER_run = first_analysis_ber(current(j), power(j), num_pf_coeff, taps_ffe, taps_dfe, M, trlength, eq_method);
|
||||
BER_run = first_analysis_ber(current(j), power(j), num_pf_coeff, taps_ffe, taps_dfe, M, trlength, eq_method, filter_length, num_signal, our_signal);
|
||||
BER_PAM_4 = [BER_PAM_4, BER_run];
|
||||
save_and_append('meineDB.sqlite', 'BER_PAM_4_Save_and_Append', eq_method, num_signal, BER_run, x)
|
||||
end
|
||||
save('C:\Users\magf\Desktop\Desktop\MATLAB-Zeugs\Silas DSP\imdd_simulation\projects\FSO_transmission\BER_PAM_4_DFE_' + string(eq_method) + '.mat', 'x', 'BER_PAM_4')
|
||||
BER_PAM_4 = [];
|
||||
end
|
||||
|
||||
%%
|
||||
x = 225:10:285;
|
||||
for k = 1:4
|
||||
BER = load('C:\Users\magf\Desktop\Desktop\MATLAB-Zeugs\Silas DSP\imdd_simulation\projects\FSO_transmission\BER_PAM_4_' + string(k) + '.mat');
|
||||
BER = BER.BER_PAM_4;
|
||||
x = 0:5:40;
|
||||
for k = 2
|
||||
BER = load('C:\Users\magf\Desktop\Desktop\Projekte\FSO\Data\BER_PAM_4_DFE_Tap_Sweep_' + string(k) + '.mat');
|
||||
BER_values = BER.BER_PAM_4;
|
||||
|
||||
figure(202120)
|
||||
plot(x, BER, '-o','LineWidth',1.75);
|
||||
plot(x, BER_values, '-o','LineWidth',1.75);
|
||||
hold on
|
||||
end
|
||||
old_BER = [-1.6, -1.85, -2.2, -2.45, -2.3, -2, -1.4];
|
||||
old_BER = 10.^(old_BER);
|
||||
plot(x, old_BER, '-o','LineWidth',1.75)
|
||||
% old_BER = [-1.6, -1.85, -2.2, -2.45, -2.3, -2, -1.4];
|
||||
% old_BER = 10.^(old_BER);
|
||||
% plot(x, old_BER, '-o','LineWidth',1.75)
|
||||
|
||||
h1 = yline(2e-2, ':k', 'LineWidth',1.5);
|
||||
h2 = yline(3.8e-3,':b', 'LineWidth',1.5);
|
||||
@@ -42,16 +45,16 @@ h4 = yline(2.2e-4,':r', 'LineWidth',1.5);
|
||||
% Legende NUR für Kurven
|
||||
legend('FFE', 'FFE+PF+MLSE', 'DB', 'ML-MLSE', 'BER Paper', ...
|
||||
'Interpreter','latex', ...
|
||||
'Location','southwest', 'FontSize', 14)
|
||||
'Location','northwest', 'FontSize', 14)
|
||||
|
||||
% FEC Labels direkt im Plot
|
||||
text(286,2.2e-2,'o-FEC','Color','k','FontSize', 14, 'Interpreter','latex')
|
||||
text(285,3.3e-3,'HD-FEC','Color','b','FontSize', 14, 'Interpreter','latex')
|
||||
text(282.5,5.4e-3,'KP4+Hamming','Color','g','FontSize', 14,'Interpreter','latex')
|
||||
text(287,2.4e-4,'KP4','Color','r','FontSize', 14,'Interpreter','latex')
|
||||
text(23,2.6e-2,'o-FEC','Color','k','FontSize', 14, 'Interpreter','latex')
|
||||
text(23,2.6e-3,'HD-FEC','Color','b','FontSize', 14, 'Interpreter','latex')
|
||||
text(23.5,6.5e-3,'KP4+Hamming','Color','g','FontSize', 14,'Interpreter','latex')
|
||||
text(23,1.4e-4,'KP4','Color','r','FontSize', 14,'Interpreter','latex')
|
||||
|
||||
xlabel('Laser Bias Current [mA]', 'Interpreter','latex')
|
||||
ylabel('BER', 'Interpreter','latex')
|
||||
xlabel('Laser Bias Current [mA]', 'Interpreter','latex', 'FontSize', 14)
|
||||
ylabel('BER', 'Interpreter','latex', 'FontSize', 14)
|
||||
% title('BER for PAM-4', 'Interpreter','latex')
|
||||
|
||||
grid minor
|
||||
|
||||
Reference in New Issue
Block a user