How to run ode45 for various parameter depending on the output of the solver

조회 수: 2 (최근 30일)
I have written a code to solve 8 coupled ordinary differential equations using ode45. I am solving for positions(x,y) of a particle in 2D coordinates.I also a have a gradient value matrix of two variable parameters which are changing depending on the positions of the particle transport. Those values are simulated to another software and exported to matlab as a matrix. My problem is how can I change the parameter values depending on the output I got from ode45 and calculate positions? I can calculate and run the code for constant parameter which is not changing depending on the positions but what can i do if i want to change them?
Any help would be highly appreciated?

답변 (1개)

Walter Roberson
Walter Roberson 2016년 1월 6일
  댓글 수: 1
regenerate arif
regenerate arif 2016년 1월 6일
I do not know the function of parameter. I only know those gradient values at different grid (x,y) points.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by