New to Dynare, problems opening files

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.

New to Dynare, problems opening files

Postby Roy123 » Thu May 26, 2011 2:48 pm

Hello Everyone

When trying to open Dynare on Matlab I press:

addpath c:\dynare\4.2.0\matlab

First, Should anything appear after wrting this ?

Secondly, when I want to open the example 1 file located on c:\dynare\4.2.0\examples, how do I do it ? Do I simply write down:

Dynare example 1.mod ??

When I do this I get the following error:

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

??? Error using ==> dynare at 108
DYNARE: can't open example.mod

What can be the problem ? I'm following the intructions on the web and don't understand where i'm getting it wrong when trying to open .mod files.

Any help will be very much appreciated, Thanks.
Roy123
 
Posts: 8
Joined: Thu May 26, 2011 2:42 pm

Re: New to Dynare, problems opening files

Postby jpfeifer » Thu May 26, 2011 6:27 pm

1. Make sure, your Matlab current directory is in "c:\dynare\4.2.0\examples"
2. Use exactly the filename the example has, i.e
Code: Select all
dynare example1.mod

There should be no space between "example" and the "1" as you apparently did.
------------
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: New to Dynare, problems opening files

Postby Roy123 » Tue May 31, 2011 8:42 am

My current Matlab Directory is
C:\dynare\4.2.0\matlab

while my examples folder is
C:\dynare\4.2.0\examples

should I copy and paste the Matlab directory to the examples folder basically ?

Thank You
Roy123
 
Posts: 8
Joined: Thu May 26, 2011 2:42 pm

Re: New to Dynare, problems opening files

Postby jpfeifer » Tue May 31, 2011 7:31 pm

No. The dynare\matlab folder should be added to your path, see http://www.dynare.org/manual/index_8.html#Configuration. If this is the case, simply set the working directory to the examples folder and type
Code: Select all
dynare example1.mod
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 12 guests