# 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:** 7

<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:** [10 December 2013 10:48 UTC](https://forum.dynare.org/t/getting-errors-from-matlab-after-running-dynare/3545/7 "2013-12-10T10:48:57Z")

</div>

Checking for info can be done by using

`if info==0;
A=oo_.dr.ghx;
E=oo_.dr.ghu;
nvar=size(oo_.dr.order_var);
D=[zeros(nvar,oo_.dr.nstatic) A(:,1:oo_.dr.npred) zeros(nvar,oo_.dr.nfwrd)];
else
whatever you want to filter out this case
end;
`  
Note that info is the second output argument of resol, which you are currently suppressing.

The set\_param\_value command takes as inputs first the Dynare name of the parameter and then the value:

`
set_param_value('coef',coef(i))`  
thus sets the parameter named coef to the value stored in coef(i). If you want to set more parameters in a loop, you can use a cell array with the parameter names and the eval-command, see [[DSGE multiple shocks, subfig for each shock/variable?!](https://forum.dynare.org/t/dsge-multiple-shocks-subfig-for-each-shock-variable/2984/1))  
Finally, note that the oo\_.exo\_simul used in the simult\_-command was wrong as detailed in the original post.

---

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