# Getting errors from matlab after running dynare

**URL:** <https://forum.dynare.org/t/getting-errors-from-matlab-after-running-dynare/3545>\
**Category:** Dynare help (legacy posts)\
**Created:** [5 December 2013 02:03 UTC](https://forum.dynare.org/t/getting-errors-from-matlab-after-running-dynare/3545 "2013-12-05T02:03:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [5 December 2013 13:41 UTC](https://forum.dynare.org/t/getting-errors-from-matlab-after-running-dynare/3545/2 "2013-12-05T13:41:57Z")

</div>

It seems you are trying to loop over Dynare without catching errors. If your parameter draw is invalid, the respective fields of oo\_ will not be set. Try using a try-catch statement or get the return code of stoch\_simul. See also [[Loop over parameters](https://forum.dynare.org/t/loop-over-parameters/3335/1))

---

_[View the full topic](https://forum.dynare.org/t/getting-errors-from-matlab-after-running-dynare/3545)._
