.if n .ds Q \&"
.if t .ds Q ``
.if n .ds U \&"
.if t .ds U ''
.TH scanpath 3m "CODAS Utilities" "GFI"
.tr \&
.nr bi 0
.nr ll 0
.nr el 0
.de DS
..
.de DE
..
.de Pp
.ie \\n(ll>0 \{\
.ie \\n(bi=1 \{\
.nr bi 0
.if \\n(t\\n(ll=0 \{.IP \\(bu\}
.if \\n(t\\n(ll=1 \{.IP \\n+(e\\n(el.\}
.\}
.el .sp
.\}
.el \{\
.ie \\nh=1 \{\
.LP
.nr h 0
.\}
.el .PP
.\}
..
.SH NAME

.Pp
\fBscanpath\fP - Update Matlab path with a new search directory

.SH SYNOPSIS

.Pp
\fBscanpath\fP(\fIdir\fP, \fIflag\fP
)

.SH DESCRIPTION

.Pp
Update the Matlab path variable to access the m-files in a new
subdirectory. Because some of the additionnal commands may have the
same name as those for editing profiles, the path to the CODAS
edit m-files is removed.
.SH PARAMETERS

.Pp
.nr ll +1
.nr t\n(ll 2
.if \n(ll>1 .RS
.IP "\fBdir \fIoptional\fP\fP  "
.nr bi 1
.Pp
String containing the directory to add or remove from the Matlab search
path. Default is the current directory. The value of \fBCODASHOME\fP
directory is automatically prefixed to the given string.
.Pp
.IP "\fBflag \fIoptional\fP\fP  "
.nr bi 1
.Pp
Flag defining which action to perform: \fB0\fP will remove the specified
directory,\fB1\fP will insert it. Default is \fB1\fP.
.Pp
.if \n(ll>1 .RE
.nr ll -1
.SH AUTHORS

.Pp
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999
