[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
2.3.1 For MATLAB | ||
2.3.2 For GNU Octave | ||
2.3.3 Some words of warning |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You need to add the ‘matlab’ subdirectory of your Dynare installation to MATLAB path. You have two options for doing that:
addpath
command in the MATLAB command window:
Under Windows, assuming that you have installed Dynare in the standard
location, and replacing 4.x.y
with the correct
version number, type:
addpath c:\dynare\4.x.y\matlab |
Under Debian GNU/Linux or Ubuntu, type:
addpath /usr/share/dynare/matlab |
Under Mac OS X, assuming that you have installed Dynare in the standard
location, and replacing 4.x.y
with the correct version
number, type:
addpath /Applications/Dynare/4.x.y/matlab |
MATLAB will not remember this setting next time you run it, and you will have to do it again.
Select the “Set Path” entry in the “File” menu, then click on “Add Folder…”, and select the ‘matlab’ subdirectory of your Dynare installation. Note that you should not use “Add with Subfolders…”. Apply the settings by clicking on “Save”. Note that MATLAB will remember this setting next time you run it.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You need to add the ‘matlab’ subdirectory of your Dynare
installation to Octave path, using the addpath
at the Octave
command prompt.
Under Windows, assuming that you have installed Dynare in the standard location, and replacing “4.x.y” with the correct version number, type:
addpath c:\dynare\4.x.y\matlab |
Under Debian GNU/Linux or Ubuntu, there is no need to use the
addpath
command; the packaging does it for you.
Under Mac OS X, assuming that you have installed Dynare in the standard location, and replacing “4.x.y” with the correct version number, type:
addpath /Applications/Dynare/4.x.y/matlab |
If you are using an Octave version strictly older than 3.2.0, you will
also want to tell to Octave to accept the short syntax (without
parentheses and quotes) for the dynare
command, by typing:
mark_as_command dynare |
If you don’t want to type this command every time you run Octave, you can put it in a file called ‘.octaverc’ in your home directory (under Windows this will generally by ‘c:\Documents and Settings\USERNAME\’). This file is run by Octave at every startup.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You should be very careful about the content of your MATLAB or Octave
path. You can display its content by simply typing path
in the
command window.
The path should normally contain system directories of MATLAB or Octave, and some subdirectories of your Dynare installation. You have to manually add the ‘matlab’ subdirectory, and Dynare will automatically add a few other subdirectories at runtime (depending on your configuration). You must verify that there is no directory coming from another version of Dynare than the one you are planning to use.
You have to be aware that adding other directories to your path can potentially create problems, if some of your M-files have the same names than Dynare files. Your files would then override Dynare files, and make Dynare unusable.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated by Build Daemon user on June 16, 2011 using texi2html 1.82.