.m
files. This environment variable is called FREEMAT_PATH
. The exact way in which you set this environment variable is OS dependent. The following instructions should be roughly correct, but you may need to modify them depending on the shell you use, etc.
For Unix-type environments, if you use tcsh
or csh
, you need to modify .cshrc
, and add a line such as the following:
setenv FREEMAT_PATH /home/username/share/FreeMat/MFiles:/home/username/myMFilesassuming you installed FreeMat in
/home/username
,and you have your own .m
files in the directory /home/username/myMFiles
. If you installed in the default location, then the command is
setenv FREEMAT_PATH /usr/local/share/FreeMat/MFiles:/home/username/myMFilesIf you use
bash
, add the following line to .bashrc
or .bash_profile
declare -x "FREEMAT_PATH=/home/username/share/FreeMat/MFiles:/home/username/myMFiles"
For Mac OS X users, use the bash
instruction, but note that FreeMat will automatically add the path for its own .m
files to FREEMAT_PATH
at start up. So, for Mac OS X users only, you would add the following line to .bashrc
or .bash_profile
declare -x "FREEMAT_PATH=/home/username/myMFiles"
For Windows NT/2000/XP users, you should be able to set the environment variable by:
FREEMAT_PATH
, and the value should be ``C:
It is not necessary to add the "." directory to the search path, as it is automatically searched by FreeMat. Also note that after installation, an HTML version of the manual is available by pointing a web browser to /home/username/share/FreeMat/html/index.html
. For the GUI, this same help is available through the help
menu.