# How to solve instability in ODE problem?

**URL:** <https://discourse.julialang.org/t/how-to-solve-instability-in-ode-problem/73158>\
**Category:** New to Julia\
**Tags:** question, ode, differentialequation\
**Created:** [December 15, 2021, 6:40pm UTC](https://discourse.julialang.org/t/how-to-solve-instability-in-ode-problem/73158 "2021-12-15T18:40:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [December 15, 2021, 9:14pm UTC](https://discourse.julialang.org/t/how-to-solve-instability-in-ode-problem/73158/4 "2021-12-15T21:14:43Z")

</div>

> [@BirteT](#):
>
> `z[:,2:4] = exp.(z[:,2:4])`

Yeah, don’t do that. The only reason why your MATLAB code even works is because this does not do what you expect in MATLAB and it actually ignores this. We don’t ignore your changes, so it will cause bad things. See:

> [@PSA: How to help yourself debug differential equation solving issues](https://discourse.julialang.org/t/psa-how-to-help-yourself-debug-differential-equation-solving-issues/62489):
>
> Debugging differential equation solver issues almost always boils down to doing the same thing, so this is a summary to help you out. For more information on specific issues, check out the FAQ section of the DifferentialEquations.jl documentation which highlights common issues and questions: [https://diffeq.sciml.ai/dev/basics/faq/](https://diffeq.sciml.ai/dev/basics/faq/)How do I debug why the differential equation solver is diverging? dt \<= dtmin. Aborting. There is either an error in your model specification or the true solution i…

---

_[View the full topic](https://discourse.julialang.org/t/how-to-solve-instability-in-ode-problem/73158)._
