SETPATH Set Current Search Path

Section: Operating System Functions

Usage

Changes the current FreeMat search path. The general syntax for its use is
  setpath(y)

where y is a string containing a delimited list of directories to be searched for M files and libraries. The delimiter between the paths depends on the system being used. For Win32, the delimiter is a semicolon. For all other systems, the delimiter is a colon. @Example The setpath function is straightforward.

--> getpath
ans = 
  <string>  - size: [1 1046]
 /home/basu/dev/trunk/FreeMat2/src/toolbox/array:/home/basu/dev/trunk/FreeMat2/src/tool
 box:/home/basu/dev/trunk/FreeMat2/src/toolbox/binary:/home/basu/dev/trunk/FreeMat2/src
 /toolbox/fitting:/home/basu/dev/trunk/FreeMat2/src/toolbox/func:/home/basu/dev/trunk/F
 reeMat2/src/toolbox/general:/home/basu/dev/trunk/FreeMat2/src/toolbox/geom:/home/basu/
 dev/trunk/FreeMat2/src/toolbox/graph:/home/basu/dev/trunk/FreeMat2/src/toolbox/help:/h
 ome/basu/dev/trunk/FreeMat2/src/toolbox/io:/home/basu/dev/trunk/FreeMat2/src/toolbox/m
 atrix:/home/basu/dev/trunk/FreeMat2/src/toolbox/mpi:/home/basu/dev/trunk/FreeMat2/src/
 toolbox/numerical:/home/basu/dev/trunk/FreeMat2/src/toolbox/os:/home/basu/dev/trunk/Fr
 eeMat2/src/toolbox/poly:/home/basu/dev/trunk/FreeMat2/src/toolbox/signal:/home/basu/de
 v/trunk/FreeMat2/src/toolbox/sparse:/home/basu/dev/trunk/FreeMat2/src/toolbox/stat:/ho
 me/basu/dev/trunk/FreeMat2/src/toolbox/string:/home/basu/dev/trunk/FreeMat2/src/toolbo
 x/time:/home/basu/dev/trunk/FreeMat2/src/toolbox/trig:
Print limit has been reached.  Use setprintlimit function to enable longer printouts
--> setpath('/usr/local/FreeMat/MFiles:/localhome/basu/MFiles')
--> getpath
ans = 
  <string>  - size: [1 48]
 /usr/local/FreeMat/MFiles:/localhome/basu/MFiles