New to Dynare, problems opening files

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.

  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

There should be no space between “example” and the “1” as you apparently did.

My current Matlab Directory is

while my examples folder is

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

Thank You

No. The dynare\matlab folder should be added to your path, see If this is the case, simply set the working directory to the examples folder and type