  1.  NAME

  scanpath - Update Matlab path with a new search directory

  2.  SYNOPSIS

  scanpath(dir, flag )

  3.  DESCRIPTION

  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.

  4.  PARAMETERS

     dir optional
        String containing the directory to add or remove from the Matlab
        search path. Default is the current directory. The value of
        CODASHOME directory is automatically prefixed to the given
        string.

     flag optional
        Flag defining which action to perform: 0 will remove the
        specified directory,1 will insert it. Default is 1.

  5.  AUTHORS

  Pierre Jaccard, Geophysical Institute, University of Bergen, 1999

