필터 지우기
필터 지우기

how to convert rsenc to comm.RSencoder

조회 수: 2 (최근 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 CenterFile Exchange에서 Error Detection and Correction에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by