Use ODE45 with a frequency span instead of time?

조회 수: 3 (최근 30일)
Keith Grey
Keith Grey 2020년 6월 11일
댓글: Star Strider 2020년 6월 11일
I have 2 coupled differential equations. I'm trying to use ODE45, but it requires a time span (tspan).
Is there a way to use a frequency span instead, or perhaps another more suitable differential equation solver?

채택된 답변

Star Strider
Star Strider 2020년 6월 11일
It does not require that the independent variable be time. It can be whatever your differential equation system requires. If your derivatives are with respect to frequency, use a frequency vector instead.
  댓글 수: 2
Keith Grey
Keith Grey 2020년 6월 11일
Can you also solve without initial conditions?
I see conditions are set for displacement. In my case, these are really low values & unknown.
Star Strider
Star Strider 2020년 6월 11일
The numeric ODE solvers all require initial conditions.
If you have data and you need to estimate the initial conditions (and possibly other parameters) to fit your differential equations to the data, that is relatively straightforward to do.
If your differential equations are relatively straightforward, you can use the Symbolic Math Toolbox to get an analytic solution (providing one exists). Those initial conditions can be symbolic.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by