⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rssymbolmul.m

📁 RS编码程序设计
💻 M
字号:

%
%   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -