Solving non-linear ode
이전 댓글 표시
I have this ode of acceleration:
where 2B(Fi,Li )=const
I need to find the postion function and then derivate to find the velocity. I tried to use ode45 and then tried to derivate using diff but I get an error :u ndefined function 'diff' for input arguments of type 'struct'.
anyone has an idea how i can solve this ode and then to find the velocity?
답변 (1개)
Alan Stevens
2020년 7월 26일
0 개 추천
ODE45 solves first order equations, so represent your second order one as two first order ones:

ODE45 will then automatically return the velocity as well as the displacement. (See documentation on ODE45 for more details).
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!