필터 지우기
필터 지우기

Time varying variable within ODE function

조회 수: 1 (최근 30일)
JSL
JSL 2015년 3월 9일
I have a variable that is used within my ODE45 function; however, it is a function of time. I discovered that I can't use the time variable within my ODE function because it is just the time step that ODE45 is using during the current call, not the total time like I need.
The only way I can think to solve this problem is to put my ODE45 in a FOR loop and discretize the variable.
Is there any other way to change a variable within my ODE function?

답변 (0개)

카테고리

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