- Your function might be creating a singularity or any other discontinuity (with an Inf or Nan result) at the specified time. You can determine this by examining the output of your ode23s call. You can plot the output obtained (all columns of the result as functions of your independent variable) and check for singularities.
- It could also be that your error tolerances are too tight. You can loosen the tolerances using odeset function.
How to solve the Error: Warning: Failure at t=6.081492e-07. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (2.160580e-21) at time t. > In ode23s (line 401)
125 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Drishya Dinesh
am 23 Apr. 2021
Beantwortet: Divija Aleti
am 28 Apr. 2021
Warning: Failure at t=6.081492e-07. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (2.160580e-21) at time t.
> In ode23s (line 401)
How to solve this error in ode matlab program
0 Kommentare
Akzeptierte Antwort
Divija Aleti
am 28 Apr. 2021
Hi Drishya,
This error can occur due to several reasons:
If you still dont get a reasonable solution, try using other integration solvers. Try checking your code once again to make sure there aren't any bugs. In case your system is poorly behaved, consider changing the model you're solving.
Hope this helps!
Regards,
Divija
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!