polymult.m

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

M
15
字号
function p = polymult(a,b)% multipoly the polynomials p=a*b% 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 onlyif(all(a==0) | all(b==0))  p = 0;else  k = length(b) - length(a);  p = conv(a,b);end

⌨️ 快捷键说明

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