next up previous contents
Next: Note on BLAS - Up: Getting Started Previous: Installing FreeMat from Source   Contents


Setting up the FreeMat Path

FreeMat uses an environment variable to determine directories it should search for .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/myMFiles
assuming 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/myMFiles
If 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:

  1. Open Control Panel
  2. Double click the System icon
  3. Go the the Advnced pane
  4. Click the Environment Variables button.
  5. Click the New button in the top half of the window (for User variables)
  6. The name of the new variable is FREEMAT_PATH, and the value should be ``C:
    FreeMat
    share
    MFiles;C:
    myMFiles'', if you installed FreeMat into ``C:
    FreeMat''.

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.


next up previous contents
Next: Note on BLAS - Up: Getting Started Previous: Installing FreeMat from Source   Contents
Samit K. Basu 2005-03-16