Page 1 of 1

New to Dynare, problems opening files

PostPosted: Thu May 26, 2011 2:48 pm
by Roy123
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.

Re: New to Dynare, problems opening files

PostPosted: Thu May 26, 2011 6:27 pm
by jpfeifer
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.

Re: New to Dynare, problems opening files

PostPosted: Tue May 31, 2011 8:42 am
by Roy123
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

Re: New to Dynare, problems opening files

PostPosted: Tue May 31, 2011 7:31 pm
by jpfeifer
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