Solving differential equation ODE45
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi,
I have two matrices, with just numeric values of velocities in x and y direction as its entries, stored separately. To find all positions I'll have to integrate the velocity values w.r.t time (dx = u*dt). How do I solve this using ode45 only? Because I have a matrix and not a function to give into the argument for ode45
Thanks!
댓글 수: 2
James Tursa
2020년 4월 28일
Can you give more details about your problem? E.g., what are the exact sizes of your variables and what exactly is in them? Sounds like you want some sampled data integrated, and maybe the trapz( ) function is more appropriate for you.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!