How to plot a polynomial function multiplied by a row vector
1 view (last 30 days)
Show older comments
Hello!
My question is how to make a function file which will plot a polynomial function p(x)=a0+ a1x^1 + a2x^2 + a3x^3 + .... + amx^m.
I know how to plot a polynomial function from this form: 1 + x + x^2 + x^3+ ... + x^M, which is for k = 0:M p = p + x.^k end; plot(x,p);
But I don't know how I can multiply the multiple parts with a certain variable.
Does anyone know how to do this?
0 Comments
See Also
Categories
Find more on Polynomials in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!