f = @(x) p1*x^7 + p2*x^6 + p3*x^5 + p4*x^4 + p5*x^3 + p6*x^2 + p7*x + p8
or
f = polyval([p1, p2, p3, p4, p5, p6, p7, p8], x);
f = @(x) p1*x^7 + p2*x^6 + p3*x^5 + p4*x^4 + p5*x^3 + p6*x^2 + p7*x + p8
or
f = polyval([p1, p2, p3, p4, p5, p6, p7, p8], x);
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!