1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>ROOTPATH Set FreeMat Root Path
</TITLE>
</HEAD>
<BODY>
<H2>ROOTPATH Set FreeMat Root Path
</H2>
<P>
Section: <A HREF=sec_freemat.html> FreeMat Functions </A>
<H3>Usage</H3>
In order to function properly, FreeMat needs to know where to
find the <code>toolbox</code> directory as well as the <code>help</code> directory.
These directories are located on what is known as the <code>root path</code>.
Normally, FreeMat should know where these directories are located.
However under some circumstances (usually when FreeMat is installed
into a non-default location), it may be necessary to indicate
a different root path location, or to specify a particular one.
Note that on the Mac OS platform, FreeMat is installed as a bundle,
and will use the toolbox that is installed in the bundle regardless of
the setting for <code>rootpath</code>.
For Linux, FreeMat will typically use <code>/usr/local/share/FreeMat-<Version>/</code>
for the root path. Installations from source code will generally work,
but binary installations (e.g., from an <code>RPM</code>) may need to have the
rootpath set.
The <code>rootpath</code> function has two forms. The first form takes no arguments
and allows you to browse to the rootpath directory
<PRE>
rootpath
</PRE>
<P>
The second form will set a rootpath directly from the command line
<PRE>
rootpath(path)
</PRE>
<P>
where <code>path</code> is the full path to where the <code>toolbox</code> and <code>help</code>
directories are located. For example, <code>rootpath('/usr/share/FreeMat-4.0')</code>.
Changes to <code>rootpath</code> are persistent (you do not need to run it every
time you start FreeMat).
</BODY>
</HTML>
|