Setting path in Matlab

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.

Setting path in Matlab

Postby rarhol » Tue Feb 07, 2017 7:24 pm

I am completely new to both Matlab and Dynare (as in...I just downloaded them both about 45mins ago) and am trying to get started.

I browsed online and found that I need to include the matlab subfolder of my dynare folder in the durrent file path.

So, I have gone to the editor tab > set path button > add folder button > selected the dynare folder > selected the matlab subfolder and added this folder. However, matlab is still saying dynare is missing from the file path.

Am I doing something wrong here?
rarhol
 
Posts: 3
Joined: Tue Feb 07, 2017 7:20 pm

Re: Setting path in Matlab

Postby jpfeifer » Tue Feb 07, 2017 9:23 pm

No, that is correct. If you go to the same tab, check whether the path is still there. If it is, type
Code: Select all
which dynare.m

into the command window to check whether the dynare m-file can be found.
------------
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: Setting path in Matlab

Postby rarhol » Tue Feb 14, 2017 5:04 pm

when I type CODE: select all

I get:

error: unexpected MATLAB expression

and when i type select all:

Undefined function 'select' for input arguments of type 'char'.
rarhol
 
Posts: 3
Joined: Tue Feb 07, 2017 7:20 pm

Re: Setting path in Matlab

Postby rarhol » Tue Feb 14, 2017 5:05 pm

sorry - forgot this part:

>> which dynare.m
/Applications/Dynare/4.4.3/matlab/dynare.m
rarhol
 
Posts: 3
Joined: Tue Feb 07, 2017 7:20 pm

Re: Setting path in Matlab

Postby jpfeifer » Tue Feb 14, 2017 6:47 pm

Your path looks fine. But how are you executing/calling Dynare in Matlab. I don't get what you are doing with
Code: Select all
select all
------------
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


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests