Does ode45 allow symbolic variables in its ode definition?

1 view (last 30 days)
The same as my title. Thanks a lot!

Answers (1)

Jan
Jan on 22 Jul 2011
Inside the ODE function you can do what ever you want, as long as the output is numerical and has a certain degree of smoothness.
  4 Comments
Jan
Jan on 23 Jul 2011
@Weiwei: It sound feasible. This is actually a standard parameter estimation of a boundary value problem on the subintervals. So start with a good coice of a,b,c, calculate the ODE and find better a,b,c by a variation or the evaluation of the sensitivity matrix. If your trajectories explode if a,b,c are far apart from the solution, use a multiple shooting method. The objective of your parameter estimation is than the distance between your trajectory from all mesaurements *and* the steps at each measurement point.
weiwei
weiwei on 24 Jul 2011
As far as I know, the lsqnonlin function in Matlab is able to do parameter estimation using least square minimization. However, it requires an input of function definition. I cannot find a way to couple ode45 with lsqnonlin to do the above described work.

Sign in to comment.

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!