krawtchouk.m

来自「压缩文件中是Error Correction Coding - Mathemat」· M 代码 · 共 19 行

M
19
字号
% Explicitly compute a set of Krawtchouk polynomials% Todd K. Moon, Sept 2, 2004% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyn = 14;      % set these parameters when calling this functionq = 2;Nmax = 14;   % number of polynomials to findsyms xK = sym('K');K(1) = 1;             % K_0K(2) = n*(q-1)-q*x;   % K_1for k=1:Nmax  K(k+2)=simplify(1/(k+1)*((k + (q-1)*(n-k) - q*x)*K(k+1)-(q-1)*(n-k+1)*K(k)));  % compute K_{k+1}end

⌨️ 快捷键说明

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