Stuck with ode45 with events option
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
i am trying to solve the following odeset. I have my @equ is of size 8x1 with initial condition also of 8x1. I have attahced a table which shows the indices actually I want to fetch the predesessor u_i-1 and successor u_i+1 while my solution current solution will be u_i (e.g. for first iteration u_i=u_0) and N=i+1 which keep on growing as the iterations moves. I think setting events options of odeset might help me but don't how it will work. Any help is really appreciated Thanks in advance.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/595270/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/595275/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/595280/image.jpeg)
댓글 수: 0
답변 (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!