# New to Dynare, problems opening files

**URL:** <https://forum.dynare.org/t/new-to-dynare-problems-opening-files/1985>\
**Category:** Dynare help (legacy posts)\
**Created:** [26 May 2011 14:48 UTC](https://forum.dynare.org/t/new-to-dynare-problems-opening-files/1985 "2011-05-26T14:48:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy123](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Roy123](https://forum.dynare.org/u/Roy123)\
**Post date:** [26 May 2011 14:48 UTC](https://forum.dynare.org/t/new-to-dynare-problems-opening-files/1985/1 "2011-05-26T14:48:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [26 May 2011 18:27 UTC](https://forum.dynare.org/t/new-to-dynare-problems-opening-files/1985/2 "2011-05-26T18:27:57Z")

</div>

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

```auto

```

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

---

<div class="post-metadata">

**Author:** ![Roy123](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@Roy123](https://forum.dynare.org/u/Roy123)\
**Post date:** [31 May 2011 08:42 UTC](https://forum.dynare.org/t/new-to-dynare-problems-opening-files/1985/3 "2011-05-31T08:42:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [31 May 2011 19:31 UTC](https://forum.dynare.org/t/new-to-dynare-problems-opening-files/1985/4 "2011-05-31T19:31:57Z")

</div>

No. The dynare\matlab folder should be added to your path, see [dynare.org/manual/index\_8.html#Configuration](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

```auto

```
