how to get higher order derivative in ODE function

조회 수: 1 (최근 30일)
Giacomo Db
Giacomo Db 2020년 12월 25일
댓글: Mischa Kim 2020년 12월 26일
in a differential equation of this type
My'' = y' + y + a
where M is the mass matrix and a is a constant.
Using ODE solver and transforming the diff equation in the cauchy form, How can i get the solution for every step also for the y''?

답변 (1개)

Mischa Kim
Mischa Kim 2020년 12월 26일
Hi Giacomo, when you solve the ODE this means you have solutions for y(t) and y'(t). You can then simply use the same equation from your ode function to compute y''.
  댓글 수: 2
Giacomo Db
Giacomo Db 2020년 12월 26일
dear Mischa,
i thank you for your help.
my doubt was regarding the use of the events function, how can i detect an event associated with y''(t)?
Mischa Kim
Mischa Kim 2020년 12월 26일
I see. I did not see any reference to events function in your question. Please add your code and other essential information to your question above and we can try to help you figure things out.

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


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