How to link a parameters table (loaded in global vector) to an ODE resolutor

2 views (last 30 days)
I need to change the value of a parameter used in an Odefun (in a resolver Ode45 type or similar) throughout the simulation time. The simulation time is 10 seconds with steps of 1 millisecond, that is, 10,000 different values ​​are specified for the parameter and they are loaded in a vector of the global type. Since the evaluation of the Odefun occurs several times in each step, I cannot link the index of the parameter vector with the simulation time to extract the corresponding value. Is there any way to achieve it?

Answers (0)

Products


Release

R2013b

Community Treasure Hunt

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

Start Hunting!