Tspan is not strictly increasing.

조회 수: 3 (최근 30일)
Asir Tushar
Asir Tushar 2019년 11월 24일
댓글: Asir Tushar 2019년 11월 29일
I am trying to solve a second order ode using ODE45 but my tspan is not strictly increasing. How can I solve it ?

채택된 답변

Stephan
Stephan 2019년 11월 27일
Since ode45 uses an automated stepwide control just define the start and the end of your tspan this way:
tspan = [0 10];
This is all you have to do to solve this problem.
  댓글 수: 3
Stephan
Stephan 2019년 11월 28일
tspan = sort(unique(T0));
should solve this.
Asir Tushar
Asir Tushar 2019년 11월 29일
Thank you.

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

추가 답변 (0개)

카테고리

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