⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 turbo_logmap.txt

📁 共同学习
💻 TXT
📖 第 1 页 / 共 5 页
字号:

    22

gfpretty(gfprimdf(m))
 
                                           4
                                  1 + X + X 
gfprimdf(m)

ans =

     1     1     0     0     1

m = 4; n = 2^m-1; % Codeword length = 15
k = 11; % Message length
% Create 100 messages, k bits each.
msg1 = randint(100*k,1,[0,1]); % As a column vector
msg2 = vec2mat(msg1,k); % As a k-column matrix
msg3 = bi2de(msg2); % As a column of decimal integers
% Create 100 codewords, n bits each.
code1 = encode(msg1,n,k,'hamming/binary');
code2 = encode(msg2,n,k,'hamming/binary');
code3 = encode(msg3,n,k,'hamming/decimal');
if ( vec2mat(code1,n)==code2 & de2bi(code3,n)==code2 )
   disp('All three formats produced the same content.')
end
All three formats produced the same content.
code1 = encode(ex11,n,k,'hamming/binary');
fschange('d:\MATLAB6p1\work\turbo\turbo.m');
clear turbo
turbo
fschange('d:\MATLAB6p1\work\turbo\turbo.m');
clear turbo
turbo
symerr(en11,code1)

ans =

    22

helpbrowser;
doc
m = 4; n = 2^m-1; % Codeword length = 15
k = 11; % Message length
% Create 100 messages, k bits each.
msg1 = randint(100*k,1,[0,1]); % As a column vector
msg2 = vec2mat(msg1,k); % As a k-column matrix
msg3 = bi2de(msg2); % As a column of decimal integers
% Create 100 codewords, n bits each.
code1 = encode(msg1,n,k,'hamming/binary');
code2 = encode(msg2,n,k,'hamming/binary');
code3 = encode(msg3,n,k,'hamming/decimal');
if ( vec2mat(code1,n)==code2 & de2bi(code3,n)==code2 )
   disp('All three formats produced the same content.')
end
All three formats produced the same content.
code2 = encode(ex11,n,k,'hamming/binary');
fschange('d:\MATLAB6p1\work\turbo\turbo.m');
clear turbo
turbo
uiopen('d:\MATLAB6p1\work\turbo\turbo.m',1)
fschange('d:\MATLAB6p1\work\turbo\turbo.m');
clear turbo
turbo
uiopen('d:\MATLAB6p1\work\turbo\saveDD.m',1)
fschange('d:\MATLAB6p1\work\turbo\saveDD.m');
clear savedd
tt=1:100;
saveDD('l',tt)
Warning: Input must be a string.
> In D:\MATLAB6p1\toolbox\matlab\strfun\deblank.m at line 18
  In D:\MATLAB6p1\toolbox\matlab\strfun\strcat.m at line 60
  In d:\MATLAB6p1\work\turbo\saveDD.m at line 8
??? Error using ==> fprintf
Invalid fid.

Error in ==> d:\MATLAB6p1\work\turbo\saveDD.m
On line 19  ==>     else  fprintf(fid,'%d ',value(i));

saveDD(tt,'l')
uiopen('d:\MATLAB6p1\work\turbo\saveDD.m',1)
fschange('d:\MATLAB6p1\work\turbo\saveDD.m');
clear savedd
saveDD(tt,'l')
uiopen('d:\MATLAB6p1\work\turbo\saveDD.m',1)
fschange('d:\MATLAB6p1\work\turbo\saveDD.m');
clear savedd
tt=zeros(11,11);
uisave
tt

tt =

     1     0     0     0     0     0     0     0     0     0     0
     0     1     0     0     0     0     0     0     0     0     0
     0     0     1     0     0     0     0     0     0     0     0
     0     0     0     1     0     0     0     0     0     0     0
     0     0     0     0     1     0     0     0     0     0     0
     0     0     0     0     0     1     0     0     0     0     0
     0     0     0     0     0     0     1     0     0     0     0
     0     0     0     0     0     0     0     1     0     0     0
     0     0     0     0     0     0     0     0     1     0     0
     0     0     0     0     0     0     0     0     0     1     0
     0     0     0     0     0     0     0     0     0     0     1

saveDD(tt,'l')
saveDD(tt(:),'l')
uiopen('d:\MATLAB6p1\work\turbo\turbo.m',1)
fschange('d:\MATLAB6p1\work\turbo\turbo.m');
clear turbo
turbo
fschange('d:\MATLAB6p1\work\turbo\turbo.m');
clear turbo
turbo
quit
 Please enter the decoding algorithm. (0:Log-MAP, 1:SOVA)  default 0    
 Please enter the frame size (= info + tail, default: 400)   
 Please enter code generator: ( default: g = [1 1 1; 1 0 1 ] )      
 Please choose punctured / unpunctured (0/1): default 0     
 Please enter number of iterations for each frame: default 5       
 Please enter number of frame errors to terminate: default 15        
 Please enter Eb/N0 in dB : default [2.0]    


----------------------------------------------------
 === Log-MAP decoder === 
 Frame size =    400
 code generator: 
     1     1     1
     1     0     1
 Punctured, code rate = 1/2 
 iteration number =       5
 terminate frame errors =     15
 Eb / N0 (dB) =       2.00
----------------------------------------------------

+ + + + Please be patient. Wait a while to get the result. + + + +
************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
3 frames transmitted, 1 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.5963e-002    1.5913e-002    1.2563e-002    3.3501e-003    2.5126e-003    
Frame Error Rate (from iteration 1 to iteration 5):
1.0000e+000    6.6667e-001    6.6667e-001    6.6667e-001    3.3333e-001    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
6 frames transmitted, 1 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.5963e-002    1.2144e-002    6.2814e-003    1.6750e-003    1.2563e-003    
Frame Error Rate (from iteration 1 to iteration 5):
1.0000e+000    6.6667e-001    3.3333e-001    3.3333e-001    1.6667e-001    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
9 frames transmitted, 1 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.6242e-002    1.1725e-002    6.1418e-003    1.3959e-003    8.3752e-004    
Frame Error Rate (from iteration 1 to iteration 5):
8.8889e-001    6.6667e-001    3.3333e-001    3.3333e-001    1.1111e-001    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
12 frames transmitted, 1 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.7638e-002    1.0888e-002    5.2345e-003    1.0469e-003    6.2814e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.1667e-001    6.6667e-001    3.3333e-001    2.5000e-001    8.3333e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
15 frames transmitted, 1 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.4456e-002    9.7152e-003    4.6901e-003    8.3752e-004    5.0251e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3333e-001    6.0000e-001    3.3333e-001    2.0000e-001    6.6667e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
18 frames transmitted, 2 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.3869e-002    8.5148e-003    4.3272e-003    1.1167e-003    8.3752e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.4444e-001    5.5556e-001    3.3333e-001    2.2222e-001    1.1111e-001    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
21 frames transmitted, 2 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.1895e-002    8.3752e-003    3.7090e-003    9.5717e-004    7.1788e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.0476e-001    5.2381e-001    2.8571e-001    1.9048e-001    9.5238e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
24 frames transmitted, 2 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2613e-002    7.3283e-003    3.2454e-003    8.3752e-004    6.2814e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.1667e-001    4.5833e-001    2.5000e-001    1.6667e-001    8.3333e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
27 frames transmitted, 3 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.4195e-002    7.6307e-003    3.7223e-003    1.2098e-003    1.0236e-003    
Frame Error Rate (from iteration 1 to iteration 5):
9.2593e-001    4.4444e-001    2.5926e-001    1.8519e-001    1.1111e-001    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
30 frames transmitted, 3 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.3283e-002    6.8677e-003    3.3501e-003    1.0888e-003    9.2127e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3333e-001    4.0000e-001    2.3333e-001    1.6667e-001    1.0000e-001    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
33 frames transmitted, 3 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2918e-002    6.3956e-003    3.0455e-003    9.8980e-004    8.3752e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3939e-001    3.9394e-001    2.1212e-001    1.5152e-001    9.0909e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
36 frames transmitted, 3 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2753e-002    5.8626e-003    2.7917e-003    9.0731e-004    7.6773e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.4444e-001    3.6111e-001    1.9444e-001    1.3889e-001    8.3333e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
39 frames transmitted, 3 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.3000e-002    5.9915e-003    2.7058e-003    8.3752e-004    7.0867e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.4872e-001    3.8462e-001    2.0513e-001    1.2821e-001    7.6923e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
42 frames transmitted, 3 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.3151e-002    5.6832e-003    2.5126e-003    7.7770e-004    6.5805e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.5238e-001    3.8095e-001    1.9048e-001    1.1905e-001    7.1429e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
45 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2948e-002    5.6393e-003    2.6801e-003    1.0050e-003    8.9336e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.5556e-001    3.7778e-001    2.0000e-001    1.3333e-001    8.8889e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
48 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.1985e-002    5.2869e-003    2.5126e-003    9.4221e-004    8.3752e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3750e-001    3.5417e-001    1.8750e-001    1.2500e-001    8.3333e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
51 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.1825e-002    4.9759e-003    2.3648e-003    8.8679e-004    7.8826e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.2157e-001    3.3333e-001    1.7647e-001    1.1765e-001    7.8431e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
54 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2008e-002    5.1182e-003    2.2334e-003    8.3752e-004    7.4446e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.2593e-001    3.3333e-001    1.6667e-001    1.1111e-001    7.4074e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
57 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2569e-002    5.1133e-003    2.1158e-003    7.9344e-004    7.0528e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.2982e-001    3.3333e-001    1.5789e-001    1.0526e-001    7.0175e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
60 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2529e-002    5.1089e-003    2.0101e-003    7.5377e-004    6.7002e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3333e-001    3.5000e-001    1.5000e-001    1.0000e-001    6.6667e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
63 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.1855e-002    4.8656e-003    1.9143e-003    7.1788e-004    6.3811e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3651e-001    3.3333e-001    1.4286e-001    9.5238e-002    6.3492e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
66 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2194e-002    5.0251e-003    2.0938e-003    6.8524e-004    6.0911e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3939e-001    3.4848e-001    1.6667e-001    9.0909e-002    6.0606e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
69 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.3341e-002    5.0980e-003    2.0756e-003    6.5545e-004    5.8262e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.4203e-001    3.4783e-001    1.7391e-001    8.6957e-002    5.7971e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
72 frames transmitted, 4 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2578e-002    4.9902e-003    1.9891e-003    6.2814e-004    5.5835e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3056e-001    3.4722e-001    1.6667e-001    8.3333e-002    5.5556e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
75 frames transmitted, 5 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2479e-002    4.8576e-003    1.9095e-003    6.0302e-004    6.0302e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3333e-001    3.4667e-001    1.6000e-001    8.0000e-002    6.6667e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
78 frames transmitted, 5 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2613e-002    4.7352e-003    1.8361e-003    5.7982e-004    5.7982e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3590e-001    3.4615e-001    1.5385e-001    7.6923e-002    6.4103e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
81 frames transmitted, 5 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2830e-002    4.9941e-003    2.2024e-003    6.2039e-004    5.5835e-004    
Frame Error Rate (from iteration 1 to iteration 5):
9.3827e-001    3.4568e-001    1.6049e-001    8.6420e-002    6.1728e-002    
***********************************************

************** Eb/N0 =  2.00 db **************
Frame size = 400, rate 1/2. 
84 frames transmitted, 5 frames in error.
Bit Error Rate (from iteration 1 to iteration 5):
2.2763e-002    4.8

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -