Evaluates a polynomial at values you specify. polyval works element-wise for matrices.
c = polyval(a, b)
Coefficients in descending order of power of the polynomial you want to evaluate. a is a vector.
Values at which you want to evaluate a. b is an array of any dimension.
Evaluated values of a MathScript uses the following equation for calculating c: c = a*b^n+ ...+a[n]*b+a[n+1]*I, where n is the degree of a and I is the identity matrix. c is a matrix of the same size as b.
A = [1, 1, 1]; B = [1, 2; 3, 4]; C = polyval(A, B)
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices