Polynomial as product of two vectors
2 views (last 30 days)
I am trying to display a polynomial as the product of two vectors.
a = [1 2 3 4 ];
f = [x,x^3,x,x^3]';
The output should be x + 2x^3 + 3x +4x^3 but instead a number of vectors are output and f(x) is output as conj(f(x)). Writing instead a*f results in the correct output but f(x) is still displayed as conj(f(x)). Can someone explain how this issue can be fixed?