|
RS編碼解碼的各種函數(shù) 及主函數(shù) MATLAB代碼
0.png (53.1 KB, 下載次數(shù): 77)
下載附件
2017-6-18 23:04 上傳
MATLAB源程序如下:
- % realize a (31,25) RS encoding & decoding in GF(2^5)
- % primitive polynomial in GF(2^5): a^5=a^2+1
- % generator polynomial g(x)=(x+a)(x+a^2)(x+a^3)(x+a^4)(x+a^5)(x+a^6)
- % codeword length N=31
- % information sequence length k=25
- % maximum number of error-correcting t=3
- % the table convert the powers of a to a decimal number
- T=[1,2,4,8,16,5,10,20,13,26,17,7,14,28,29,31,27,19,3,6,12,24,21,15,30,25,23,11,22,9,18];
- % the input information sequence
- disp('輸入信息序列:')
- m_xi=1:25
- % press any key to continue, to view the results clearly
- disp('Press any key to continue...')
- pause
- % sequence after encoding
- disp('編碼輸出序列(發(fā)送序列):')
- t_x=rs_encode(m_xi)
- disp('Press any key to continue...')
- pause
- % press any key to continue
- disp('信道產(chǎn)生的錯(cuò)誤位置:')
- sitegen=[0 5 30]
- disp('信道產(chǎn)生的錯(cuò)誤數(shù)值:')
- valuegen=[5 3 7]
- num=length(valuegen);
- disp('Press any key to continue...')
- pause
- % press any key to continue
- % sequence received after channel
- disp('接收序列')
- r_x=rs_channel(t_x,num,sitegen,valuegen)
- disp('Press any key to continue...')
- pause
- % press any key to continue
- % sequence after decoding
- m_xo=rs_decoder(r_x)
- disp('Done!')
復(fù)制代碼
完整論文下載:http://www.torrancerestoration.com/bbs/dpj-88155-1.html
所有資料51hei提供下載:
RS.rar
(6.81 KB, 下載次數(shù): 69)
2017-6-18 20:17 上傳
點(diǎn)擊文件名下載附件
下載積分: 黑幣 -5
|
|