Ordnerstruktur
This commit is contained in:
18
Theory/Mapping_Coding/partial_response/duobinary_back2back.m
Normal file
18
Theory/Mapping_Coding/partial_response/duobinary_back2back.m
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
for M = [2 4 8]
|
||||
bits = Signalgenerator("form", signalform.prms,"M", M,"order", 15).process();
|
||||
|
||||
symbols = PAMmapper(M,0).map(bits);
|
||||
|
||||
symbols_pre = Duobinary().precode(symbols);
|
||||
|
||||
symbols_db = Duobinary().encode(symbols_pre);
|
||||
|
||||
symbols_rx = Duobinary().decode(symbols_db);
|
||||
|
||||
% Vergleichen von b(n) und d_dec(n)
|
||||
bits_rx = PAMmapper(M,0).demap(symbols_rx);
|
||||
[~,~,ber,~] = calc_ber(bits.signal,bits_rx.signal,"skip_front",10,"skip_end",10,"returnErrorLocation",1);
|
||||
disp(['BER: ',sprintf('%.1E',ber),' - - PAM-',num2str(M)]);
|
||||
end
|
||||
Reference in New Issue
Block a user