I have an equation: w = (t-x0)*(t-x1). I want to solve it with the conv function(conv((t-x0),(t-x1))), but its arguments are syms which are t,x0 and x1. I get an error that is
Undefined function 'conv2' for input arguments of type 'sym'.
How do I solve its error ? I also want the result to be a polynomial, because I should integrate with polyint.
For example:
w = (t-x0)*(t-x1) --> w = t^2 - t*(x0+x1) + x0*x1 --> w=[ 1 -x0-x1 x0*x1 ]
polyint(w) --> w= t^3/3 -t^2/2*(x0+x1) + t*x0*x1 --> w=[ 1/3 -1/2*(x0+x1) x0*x1 0 ]
t^3/3 + (- x0/2 - x1/2)*t^2 + x0*x1*tas an answer, then why did you say you wantedw=[ 1/3 -1/2*(x0+x1) x0*x1 0 ]? If all you want ist^3/3 + (- x0/2 - x1/2)*t^2 + x0*x1*tthen it is one line in Matlab. I will update my answer to show this as well. - Nasser