how to convert rsenc to comm.RSencoder

3 ビュー (過去 30 日間)
rest12
rest12 2014 年 6 月 11 日
回答済み: Obaidullah Rahman 2016 年 12 月 2 日
The example below encodes two message words using a (7,3) Reed-Solomon encoder:
m = 3; % Number of bits per symbol
n = 2^m-1; k = 3; % Word lengths for code
msg = gf([2 7 3; 4 0 6],m); % Two rows of m-bit symbols
code = rsenc(msg,n,k)
the above code uses rsenc function. If I want to use comm.RSencoder instead of rsenc. What changes do I need to make in it? Please guide.

回答 (2 件)

Ting-Hsuan
Ting-Hsuan 2014 年 12 月 9 日
m = 3; % Number of bits per symbol
n = 2^m-1; k = 3; % Word lengths for code
msg = [2 7 3; 4 0 6].';
msg = msg(:);
hh = comm.RSEncoder(n,k) code = step(hh,msg); final = reshape(code,2,7);
  1 件のコメント
Ting-Hsuan
Ting-Hsuan 2014 年 12 月 9 日
hh = comm.RSEncoder(n,k);
code = step(hh,msg);
final = reshape(code,2,7);

サインインしてコメントする。


Obaidullah Rahman
Obaidullah Rahman 2016 年 12 月 2 日
I want to perform bin2dec on a vector of galois field vector. Does any one know how to do it? Thanks

カテゴリ

Help Center および File ExchangeError Detection and Correction についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by