Page 1 of 1

How to solve this problem:DYNARE: can't open exapmle1.mod

PostPosted: Tue Sep 25, 2012 12:23 pm
by wanghao19820707
Dear All:
I install dynare 4.3.0 and matlab 7.10.0(R2010a) on my win7 system.And I already use addpath command to add directory of matlab and examples of Dynare in matlab.But still, when I use command "dynare example1" the error message shows as following:

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).

??? Error using ==> dynare at 96
DYNARE: can't open exapmle1.mod

what can I do ?

Re: How to solve this problem:DYNARE: can't open exapmle1.mo

PostPosted: Tue Sep 25, 2012 12:26 pm
by kyri82
Are you sure you spelled it correctly? The message is DYNARE: can't open exapmle1.mod and not example1.mod

Re: How to solve this problem:DYNARE: can't open exapmle1.mo

PostPosted: Tue Sep 25, 2012 12:56 pm
by wanghao19820707
Hi Kyri:
sorry for confusion.I spell right in matlab with dynare example1 but still,the error message is the same:

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).

??? Error using ==> dynare at 96
DYNARE: can't open example1.mod

Re: How to solve this problem:DYNARE: can't open exapmle1.mo

PostPosted: Tue Sep 25, 2012 1:21 pm
by jpfeifer
Every mod-file you want to execute has to be in Matlab's current folder. Adding the path to the examples is not sufficient.

Re: How to solve this problem:DYNARE: can't open exapmle1.mo

PostPosted: Tue Sep 25, 2012 1:51 pm
by wanghao19820707
Dear jpfeifer:
The example1 is indeed in my current folder in matlab but still the error message is the same.
Is it mean that maybe there is something wrong with my matlab ?
Many thanks for your kindly help!

Re: How to solve this problem:DYNARE: can't open exapmle1.mo

PostPosted: Tue Sep 25, 2012 2:01 pm
by jpfeifer
Try deinstalling and then reinstalling Dynare. And do not forget deleting the path in Matlab after deinstalling.

Re: How to solve this problem:DYNARE: can't open exapmle1.mo

PostPosted: Wed Sep 26, 2012 9:27 am
by wanghao19820707
Dear Jpfeifer:
Thanks.I will try.