Adding a path to the list of directories which are searched by the interpreter for resolving undefined references.
addpath path
path An array of strings containing the paths to be added.


During a session, Mathnium maintains a list of directories which are searched for resolving undefined references. Thus, for example, if the name variable is used in an expression and it has not been previously defined during the session, these directories are searched for a file a named variable.m. If the file is found, it is executed in an attempt to resolve the undefined reference.

The function addpath can be used to add a directory to the search path.

>>// equivalent ways adding the two directories.
>>addpath c:\\user\\work c:\\user\\proj
>> addpath({"c:\\user\\work","c:\\user\\proj"});