You should replace int
by a simpler integration routine, and forget about syms. Try the build-in integrate
, or https://ece.uwaterloo.ca/~dwharder/NumericalAnalysis/13Integration/romberg/matlab.html
Alternatively, you may find an alternative to interp1
, and call int
on each of its subintervals.