PageRenderTime 34ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/drm/trunk/debug/mm/ml/src_gen/adp.m

http://github.com/zaqwes8811/decoder-reed-solomon
MATLAB | 12 lines | 12 code | 0 blank | 0 comment | 0 complexity | 838466b43b7201c1e8ba89ba32d7c200 MD5 | raw file
  1. clear all;
  2. addpath(cat(2,pwd,'\src'));
  3. p_sourse = [1 0 0 0 1 1 1 0 1]; % x8+x+1
  4. p = bitroute(p_sourse, length(p_sourse)); % ??? ????????? ?????? ??????????? ???? ? ???????
  5. ip = arbit2dec(p_sourse); % ????????? ? uint
  6. m = length(p)-1; % ??????? ????????????? ??????????
  7. GF = 2^m; % ????? ????????? ? ???? 2^(??????? ???????? ??????????)
  8. [index_of alpha_to] = getLook_up(p_sourse);
  9. unicalc{1,1} = index_of;
  10. unicalc{1,2} = alpha_to;
  11. unicalc{1,3} = GF;
  12. unicalc{1,4} = m;