Ignoring error messages from Dynare

I want to loop in matlab over parameter settings. Sometimes the parameter settings will make the model unstable and thus result in an error message (Blanchard Kahn not satisfied).

I would actually want matlab to continue with the loop when this happens, and just ignore the error message.

Is this possible? If so, how??

Many thanks in advance!

Depends on what you are looping over. If you just loop over

there will be no exception thrown. If you are looping over

you must set

The error code will then be stored in info returned by