PageRenderTime 43ms CodeModel.GetById 28ms app.highlight 2ms RepoModel.GetById 10ms app.codeStats 2ms

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

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