Skip to content

polyvalm

polynomial · scripts/polynomial/polyvalm.m

Y = polyvalm (P, X)  --  evaluate a polynomial with matrix arguments.

Y = P(1)*X^(N-1) + ... + P(N-1)*X + P(N)*I, using matrix powers.  X must
be square.