Hello
I have a coefficient vector of a polynomial and I want to introduce by a program the signs '+' and '-' in front of each coefficient.
ex: v = [2 -3 +4 -5]
Under the form: p = 2 * x. ^ 3 – 3 * x. ^ 2 + 4 * x – 5;
Who can help me thank you in advance.
Best Answer
Try this( Symbolic Toolbox is required for this code):