Opening a Dynare file

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Opening a Dynare file

Postby mram » Mon Jan 05, 2015 3:34 pm

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!
mram
 
Posts: 2
Joined: Mon Jan 05, 2015 3:26 pm

Re: Opening a Dynare file

Postby jpfeifer » Mon Jan 05, 2015 10:38 pm

You need to set Matlab's Current Folder to the folder where the mod-file is located.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Opening a Dynare file

Postby mram » Tue Jan 06, 2015 11:33 am

Many thanks for your swift reply.

It all works, thanks again for helping new starters.

All the best for 2015
mram
 
Posts: 2
Joined: Mon Jan 05, 2015 3:26 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 11 guests