I have got a matrix like
c1 = [1 2 3] or c2 = [4 2]
Now I want to create a symbolic function with
c1 and c2 or any other matrix.
This symbolic function should look like:
c1: f(x) = 1 + 2x + 3x²
c2: f(x) = 4 + 2x
Important: I want create this function automatically.
Is there any chance to do this nicely?
That is exactly what the function
poly2sym
does. Small but important difference: you describe the following function:while
poly2sym
creates a functionso you will have to flip the order of the input vector
c
using e.g.fliplr
.