资源简介
可用来实现任意马码长的RS编解码程序,是通信人
代码片段和文件信息
%This is the main program to realize a (244212) RS encoding in GF(2^8)
%primitive polynomial in GF(2^8): x^8+x^7+x^2+x+1
%generator polynomial g(x)=П (x-α^11j)=ПG(i)x^ij=112:143i=0:33
N=244;%codeword length 244
K=212;%information sequence length 212
shorten=11;%the number of ‘0‘ shortened
range=11*(112:143);%the range of the exponential of α in polynomial
prim_poly=391;%the decimal presentation of primitive polynomial
CN=N-K;%Checkcode‘s number
n=N+shorten;%the length of original signal
msg=randint(1K[0n]);%generate random information sequence
genpoly=rs_genpoly(NKprim_polyrange);%Call the function to generate the coefficients of the polynomial
cc=rs_encode(KCNmsggenpoly);%Call the function to get the check code
mcode=[msgcc]%Combine the information code and test code to get the encoded results
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 22005 2009-12-17 21:41 my\introduce.doc
文件 855 2009-12-17 20:27 my\my_rs_encode.m
文件 593 2009-12-17 17:15 my\rs_add.m
文件 1411 2009-12-17 20:26 my\rs_encode.m
文件 2024 2009-12-17 20:37 my\rs_genpoly.m
文件 1429 2009-12-17 17:10 my\rs_mod.m
文件 1563 2009-12-17 18:38 my\rs_mul.m
文件 908 2009-12-17 16:29 my\rs_mulpoly.m
目录 0 2010-01-02 23:04 my
----------- --------- ---------- ----- ----
30788 9
评论
共有 条评论