Setpath: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Importing text file)
 
imported>Benjamin
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===Purpose===
===Purpose===
Modifies and saves current directory
Modifies and saves current directory
===Synopsis===
===Synopsis===
:setpath(''flag'')
 
:failure = setpath(''flag'')
 
===Description===
===Description===
SETPATH will modify the MATLAB path to include the current directory and all subdirectories and will save the path to the pathdef.m file.
 
If the optional input ''flag'' i s set to 0 then only the current directory is saved
SETPATH will modify the MATLAB path to include the current directory and all sub-directories and will save the path to the pathdef.m file.
 
If the optional input ''flag'' can be any of the following:
:0 = only the current directory is added
:1 = add the current directory and all sub-folders to the path top
:2 = tries to move dems/help/uts to top of path.
:3 = current folder and sub-folders are added BELOW any currently installed PLS_Toolbox folders.
 
The output, failure, returns 1 if the operation failed.
 
===See Also===
===See Also===
[[evriinstall]]
 
[[evriinstall]], [[evriuninstall]], [[evrimovepath]]

Latest revision as of 11:46, 11 January 2018

Purpose

Modifies and saves current directory

Synopsis

failure = setpath(flag)

Description

SETPATH will modify the MATLAB path to include the current directory and all sub-directories and will save the path to the pathdef.m file.

If the optional input flag can be any of the following:

0 = only the current directory is added
1 = add the current directory and all sub-folders to the path top
2 = tries to move dems/help/uts to top of path.
3 = current folder and sub-folders are added BELOW any currently installed PLS_Toolbox folders.

The output, failure, returns 1 if the operation failed.

See Also

evriinstall, evriuninstall, evrimovepath