フィルターのクリア

Moving to the new comm.RSDecoder System object.

2 ビュー (過去 30 日間)
Chris
Chris 2013 年 2 月 26 日
How would the following code be mapped to the new comm.RSDecoder System object?
m = 8; % Number of bits per symbol
n = 16;
k = 12;
msg = gf(1:12, m);
gen_poly = rsgenpoly(255,251,285,0);
m = rsenc(msg, n, k, gen_poly);
I have tried everything and I always get errors and none of them help.
Thanks Chris

採用された回答

Chris
Chris 2013 年 3 月 1 日
編集済み: Chris 2013 年 3 月 1 日
Here is the answer in case anyone is looking for it.
n = 16;
k = 12;
prim_poly= [1 0 0 0 1 1 1 0 1];
gen_poly = rsgenpoly(255,251,285,0);
this.system_obj_encoder = comm.RSEncoder('MessageLength', k, ...
'CodewordLength', n, ...
'PrimitivePolynomialSource', 'Property',...
'PrimitivePolynomial',prim_poly,...
'GeneratorPolynomialSource', 'Property',...
'GeneratorPolynomial', gen_poly);
And then of course you use the step member function to decode.

その他の回答 (0 件)

カテゴリ

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