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

📄 polysubm.m

📁 压缩文件中是Error Correction Coding - Mathematical Methods and Algorithms(Wiley 2005)作者:(Todd K. Moon )的配
💻 M
字号:
function p = polysub(a,b,m)% subtract the polynomials p=a-b modulo m% The polynomials are represented with the HIGHEST coefficient first% e.g., x^2 + 3x + 4 -- [1 3 4],   x^2 + 3x --- [ 1 3 0]% Copyright 2004 by Todd K. Moon% Permission is granted to use this program/data% for educational/research onlyk = length(b) - length(a);p = mod([zeros(1,k) a] - [zeros(1,-k) b],m);if(all(p==0))  p = 0;else  p = p(find((p==0)==0):end);   % get rid of leading zerosend

⌨️ 快捷键说明

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