Page 1 of 1

Opening a Dynare file

PostPosted: Mon Jan 05, 2015 3:34 pm
by mram
Hi all,

I am getting to use Dynare these days and am doing baby steps. I have a very basic question as such.
I looked up online yet did not find a solution yet.

What I did:
- I installed Dynare 4.4.3
- I have Matlab running fine
- I added the path \dynare\4.4.3\matlab to the Matlab directory

What I am miserably trying to do:
- Opening and running the simple examples in the dynare\4.4.3\examples subfolder.

What it does:
- I can open the file by writing the Matlab command "edit example1.mod" or any other example that comes when installing Dynare
- I can't run it by writing "dynare example1.mod" or any other example. The error message I get is:

================================
Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Starting Dynare (version 4.4.3).
Starting preprocessing of the model file ...
ERROR: Could not open file: example1.mod

Error using dynare (line 174)
DYNARE: preprocessing failed
================================

I can tell I am doing a silly mistake somewhere, yet I cannot figure it out.
Would anyone have any idea on this? Any help would be much appreciated.

Many thanks!

Re: Opening a Dynare file

PostPosted: Mon Jan 05, 2015 10:38 pm
by jpfeifer
You need to set Matlab's Current Folder to the folder where the mod-file is located.

Re: Opening a Dynare file

PostPosted: Tue Jan 06, 2015 11:33 am
by mram
Many thanks for your swift reply.

It all works, thanks again for helping new starters.

All the best for 2015