getrscodeparam.m

来自「RS编码程序设计」· M 代码 · 共 28 行

M
28
字号

%
%   File Name   :   RsCodingUnitTest.m
%   Abstract    :   Function GetRsCodeParam returns parameters of RS code under use,
%                   include Code Length ( n ), length of information bits ( k )
%                   and mapping table to convert GF elements in decimal format into its
%                   exponent
%                   
%   
%   Version     :   1.0     2006-3-15
%*************************************************************************% 

function [CodeLen, InfoBitLen, Dec2ExpMappingTable] = GetRsCodeParam

% return Code Length
CodeLen = 15;

% return Length of information bits
InfoBitLen = 11;

% mapping table to convert GF elements in decimal format to its exponent
MappingTable = [ 1, 2, 4, 8, 3, 6, 12, 11, 5, 10, 7, 14, 15, 13, 9 ];

% return mapping table
Dec2ExpMappingTable = MappingTable;

% end function rs_GetDec2ExpMappingTable

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?