Polynomial evaluation - MATLAB polyval
www.mathworks.com › help › matlabPolynomial coefficients, specified as a vector. For example, the vector [1 0 1] represents the polynomial x 2 + 1, and the vector [3.13 -2.21 5.99] represents the polynomial 3.13 x 2 − 2.21 x + 5.99. For more information, see Create and Evaluate Polynomials. Data Types: single | double Complex Number Support: Yes
Coefficients of polynomial - MATLAB coeffs
www.mathworks.com › help › symbolicDescription. C = coeffs (p) returns coefficients of the polynomial p with respect to all variables determined in p by symvar. C = coeffs (p,var) returns coefficients of the polynomial p with respect to the variable var. [C,T] = coeffs ( ___) returns the coefficient C and the corresponding terms T of the polynomial p.
Create and Evaluate Polynomials - MATLAB & Simulink
www.mathworks.com › help › matlabMATLAB® represents polynomials as row vectors containing coefficients ordered by descending powers. For example, the three-element vector. p = [p2 p1 p0]; represents the polynomial. p ( x) = p 2 x 2 + p 1 x + p 0. Create a vector to represent the quadratic polynomial p ( x) = x 2 - 4 x + 4. p = [1 -4 4]; Intermediate terms of the polynomial that have a coefficient of 0 must also be entered into the vector, since the 0 acts as a placeholder for that particular power of x.