Expand description
Session-wide MATLAB path state shared between the path builtin and
filesystem helpers such as exist or which.
The MATLAB search path is represented as a single platform-specific string
using the same separator rules that MathWorks MATLAB applies (; on
Windows, : everywhere else). RunMat keeps the current working directory
separate from this list so callers can freely replace or manipulate the path
without losing the implicit pwd entry that MATLAB always prioritises.
Constants§
- PATH_
LIST_ SEPARATOR - Platform-specific separator used when joining MATLAB path entries.
Functions§
- current_
path_ segments - Split the current MATLAB path string into individual entries, omitting empty segments and trimming surrounding whitespace.
- current_
path_ string - Return the current MATLAB path string (without the implicit current directory entry).
- set_
path_ string - Replace the MATLAB path string for the current session. When
new_pathis empty the session path becomes empty and theRUNMAT_PATHenvironment variable is removed.