欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

標題: 里德所羅碼MATLAB源碼 [打印本頁]

作者: 1151302223    時間: 2018-6-22 16:23
標題: 里德所羅碼MATLAB源碼
里德所羅碼MATLAB r2015b上rsenc怎么用
  1. % realize a (31,25) RS encoding & decoding in GF(2^5)
  2. % primitive polynomial in GF(2^5):  a^5=a^2+1
  3. % generator polynomial g(x)=(x+a)(x+a^2)(x+a^3)(x+a^4)(x+a^5)(x+a^6)
  4. % codeword length N=31
  5. % information sequence length k=25
  6. % maximum number of error-correcting t=3

  7. % the table convert the powers of a to a decimal number
  8. 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];

  9. % the input information sequence
  10. disp('輸入信息序列:')
  11. m_xi=1:25
  12. % press any key to continue, to view the results clearly
  13. disp('Press any key to continue...')
  14. pause
  15. % sequence after encoding
  16. disp('編碼輸出序列(發送序列):')
  17. t_x=rs_encode(m_xi)

  18. disp('Press any key to continue...')
  19. pause
  20. % press any key to continue
  21. disp('信道產生的錯誤位置:')
  22. sitegen=[0 5 30]
  23. disp('信道產生的錯誤數值:')
  24. valuegen=[5 3 7]
  25. num=length(valuegen);
  26. disp('Press any key to continue...')
  27. pause
  28. % press any key to continue
  29. % sequence received after channel
  30. disp('接收序列')
  31. r_x=rs_channel(t_x,num,sitegen,valuegen)
  32. disp('Press any key to continue...')
  33. pause
  34. % press any key to continue
  35. % sequence after decoding
  36. m_xo=rs_decoder(r_x)
  37. disp('Done!')
復制代碼


全部資料51hei下載地址:
dsp實習.tar (6 KB, 下載次數: 6)








歡迎光臨 (http://m.raoushi.com/bbs/) Powered by Discuz! X3.1