What would a good script m-file that calculates A polynomial of degree n?

I want to be able to write this file where I can input a x value and a c value for the polynomial. Ex. p(x)= c1 = c2*x + c3*x^2+...+cn+1 x^(n). I want find the value of p(x)

2 Comments

I think it has something to do with using vectors and the input, but I am not really sure.
Apparently my polyval suggestion wasn’t the Answer, so I deleted my reference to it.

Sign in to comment.

Answers (0)

Categories

Asked:

on 5 Feb 2016

Commented:

on 5 Feb 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!