A first-time user really needing help

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.

A first-time user really needing help

Postby marmaxguzman » Mon Feb 27, 2012 10:56 pm

Dear Dynare community:

I'm trying to be a first-time Dynare user, but unfortunately I'm being unable to run any of the sample examples. My Matlab version is 7.11.0, and my Dynare version is 4.2.4. As stated in the user guide, my first order to Matlab is

addpath /Applications/Dynare/4.2.4/matlab

Later, I try to run an example, like for instance the example1.mod attached file, by writing

dynare example1

The program indicates there is an error in line 97. Line 97 is the "error" line of the following section


d = dir(fname);
if length(d) == 0
error(['DYNARE: can''t open ' fname])
end

As suggested in one of the previous discussions on the forum, I comment that line and go on. When I do that, I get another error in line 115. Line 115 is the "error" line of the following section:

[status, result] = system(command);
disp(result)
if status
% Should not use "error(result)" since message will be truncated if too long
error('DYNARE: preprocessing failed')
end


I comment that line and go on, and then I get another error at line 121:

evalin('base',fname) ;

I have no idea about how to continue trying, and considering I'm writing a DSGE model, I'm certain I would extremely benefit from using Dynare (not only now but also in a long term).

I would really appreciate your help. I promise to offer my help as many times as possible when I become a solid user.

Thanks very much,
Martin
Attachments
example1.mod
(1.52 KiB) Downloaded 71 times
marmaxguzman
 
Posts: 4
Joined: Sat Feb 25, 2012 5:09 pm

Re: A first-time user really needing help

Postby jpfeifer » Tue Feb 28, 2012 9:59 am

Have you set your Matlab working directory to the folder where the mod-file is located? It seems Dynare can't find the file.
Moreover, you can try adding the Dynare path to the Matlab path by going to File -> Set Path -> Add with subfolders
------------
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: A first-time user really needing help

Postby marmaxguzman » Tue Feb 28, 2012 3:57 pm

Thanks for your answer. I've done that, but still doesn't work. Didn't this problem happen to anyone else?
marmaxguzman
 
Posts: 4
Joined: Sat Feb 25, 2012 5:09 pm

Re: A first-time user really needing help

Postby jpfeifer » Tue Feb 28, 2012 4:59 pm

Inside Matlab type
Code: Select all
which example1.mod

Is the answer identical to your working directory?
------------
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: A first-time user really needing help

Postby marmaxguzman » Tue Feb 28, 2012 6:12 pm

The problem has been solved. Thanks so much to jpfeifer.
marmaxguzman
 
Posts: 4
Joined: Sat Feb 25, 2012 5:09 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests