Fail to run the dynare code

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.

Fail to run the dynare code

Postby fengsexiaxiang » Mon Jun 02, 2014 7:18 am

Hi,everyone, I failed to run the dynare code in the matlab. Here are my problems. I stored the mod file in the desktop, and input the following commands in the command window of matlab:

>> cd C:\Users\Jacky\Desktop
>> addpath c:\Users\Jacky\Desktop
>> dynare example

However, the matlab fails to run the dynare file, and reply the following information:
??? Undefined function or method 'dynare' for input arguments of type 'char'.

I try many times to reset the path and even re-install the dynare software, but the problem still exists. The problem didn't exist in the past.

What's the potential cause for the problem? Does someone give me the suggestions to solve it? Many thanks
fengsexiaxiang
 
Posts: 4
Joined: Sun Dec 22, 2013 3:45 pm

Re: Fail to run the dynare code

Postby Daniel Bendel » Mon Jun 02, 2014 7:55 am

You have to input the dynare files into the matlab working enviroment.
Depending on where you have saved the dynare folder, simply run the following command in matlab:

Code: Select all
addpath c:\dynare\4.4.2\matlab
Germany, Cologne
Daniel Bendel
 
Posts: 134
Joined: Tue Nov 15, 2011 1:06 pm
Location: Cologne, Germany

Re: Fail to run the dynare code

Postby jpfeifer » Mon Jun 02, 2014 8:01 am

The Daniel said, the addpath() needs to go to your Dynare folder, like C:\dynare\4.4.2\matlab, not to the folder where the mod-file is located (the latter is where you have to cd to as you correctly do with the first command).
------------
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: Fail to run the dynare code

Postby fengsexiaxiang » Mon Jun 02, 2014 8:18 am

Many thanks for your suggestion. And I have solve the problem under your instructions. :lol:
fengsexiaxiang
 
Posts: 4
Joined: Sun Dec 22, 2013 3:45 pm

Re: Fail to run the dynare code

Postby fengsexiaxiang » Mon Jun 02, 2014 8:19 am

Many thanks for your suggestion. And I have solve the problem under your instructions. :lol:
fengsexiaxiang
 
Posts: 4
Joined: Sun Dec 22, 2013 3:45 pm

Re: Fail to run the dynare code

Postby fengsexiaxiang » Mon Jun 02, 2014 8:21 am

Thank you as well. :lol:
fengsexiaxiang
 
Posts: 4
Joined: Sun Dec 22, 2013 3:45 pm


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 5 guests