evalrpoly.m
来自「code of an ADC implementation woith matl」· M 代码 · 共 13 行
M
13 行
function y = evalRPoly(roots,x,k)%function y = evalRPoly(roots,x,k=1)%Compute the value of a polynomial which is given in terms of its roots.if(nargin<3) k=1;endy = k(ones(size(x)));roots = roots(~isinf(roots)); % remove roots at infinityfor(i=1:length(roots)) y = y.*(x-roots(i));end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?