To run Dynare codes

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.

To run Dynare codes

Postby tebernus » Fri Jan 11, 2008 1:08 pm

Dear all,

I am a new user of Dynare and Matlab. I have installed Dynare v3 under Matlab directory. I just want to know how to input "rbc.mod" to Matlab. I cannot run any examples.

I need your help.

Regards,
Tebby
tebernus
 
Posts: 1
Joined: Fri Jan 11, 2008 12:56 pm

Postby muratK » Tue Jan 15, 2008 8:47 am

Hi Tebby,

You should first set Matlab's path to your Dynarev3 directory: In Matlab, click File->Set Path then choose your Dynare v3 directory from the folder tree, click on Add with subfolders, then Save and Close. If you are working on a network computer, you might have to do this every time you open up Matlab, which is pretty irritating for me since I run 10 jobs simultaneously on different servers and I have to log off at least once a week. Does anybody know a way to get around this by the way?

Now type rbc.mod in Command Window.

PS Dynare User Guide is your friend! :wink:
muratK
 
Posts: 9
Joined: Thu Aug 09, 2007 10:52 pm
Location: Seattle

Postby MichelJuillard » Tue Jan 15, 2008 6:37 pm

I beg to differ, the *.mod file can't be entered in Matlab Command Window. You need to use Matlab editor or any other ASCII editor. Make sure that the file name is correct after you have saved it.

Instead of saving the path, you can look at Matlab
addpath()
and
the default starting function startup.m

You will find details in Matlab documentation

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Postby muratK » Tue Jan 15, 2008 10:06 pm

MichelJuillard wrote:I beg to differ, the *.mod file can't be entered in Matlab Command Window. You need to use Matlab editor or any other ASCII editor. Make sure that the file name is correct after you have saved it.

Michel


Oh, I thought Tebby meant they could not RUN the .mod file. But if they need to EDIT the file, of course Michel is right. I should have been more clear when I said "type rbc.mod", I didn't mean "type the whole mod file in command window", sorry about that.

And, thanks for the tip Michel!
muratK
 
Posts: 9
Joined: Thu Aug 09, 2007 10:52 pm
Location: Seattle

Postby MichelJuillard » Wed Jan 16, 2008 7:19 am

Maybe you're right. If the original question was about telling Matlab to run Dynare on rbc.mod the syntax is
Code: Select all
dynare rbc

No need to add the .mod extension

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests