rssymbolmul.m
来自「RS编码程序设计」· M 代码 · 共 24 行
M
24 行
%
% File Name : RsSymbolMul.m
% Abstract : Function RsSymbolMul(LOperand,ROperand) returns the
% product of two elements in GF(2.^4) Field. LOperand and
% ROperand are the two elements.
%
% Version : 1.0 2008-5-20
%*************************************************************************
function[Product]=RsSymbolMul(LOperand,ROperand)
NumtoPower=[1;2;4;8;3;6;12;11;5;10;7;14;15;13;9];%create a table for searching
if(LOperand==0 | ROperand==0)
Product=0;
else
L=find(NumtoPower==LOperand)-1;%find the location
R=find(NumtoPower==ROperand)-1;%find the location
Product=NumtoPower(mod(L+R,15)+1);%result of Porduct
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?