I am running into a similar problem as that in the above post.
Essentially I am running "dynare xxxx.mod" inside a custom-written Matlab function. The function is supposed to compute the policy functions and then simulate / compute moments of the model using "simult_". Finally it spits out some GMM-based criterion value.
However when I try this and run the initial "dynare xxx.mod", I cannot access the "oo_" or "M_", which I need to run the "simult_()." Matlab says these objects ("oo_, M_") do not exist (when I debug the function). What is going wrong exactly? Any help is much appreciated.
The dynare command I run is:
- Code: Select all
dynare xxxxx.mod nowarn noclearall