File: freemat_rootpath.html

package info (click to toggle)
freemat 4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 174,756 kB
  • ctags: 67,023
  • sloc: cpp: 351,059; ansic: 255,892; sh: 40,590; makefile: 4,387; perl: 4,058; asm: 3,313; pascal: 2,718; fortran: 1,722; ada: 1,681; ml: 1,360; cs: 879; csh: 795; python: 430; sed: 162; lisp: 160; awk: 5
file content (45 lines) | stat: -rw-r--r-- 1,748 bytes parent folder | download | duplicates (2)
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-&lt;Version&gt;/</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>