Paths

comparePaths(NAME, printLevel)[source]

Compares the system and MATLAB paths for a given NAME environment variable

USAGE:

[common, system_not_matlab, matlab_not_system] = comparePaths (NAME, printLevel)

INPUTS:
  • NAME – environment variable, e.g., PATH or LD_LIBRARY_PATH, or the special value PYTHON to compare the MATLAB and system python paths

  • printLevel – verbosity level; > 0 prints the summary of entries unique to system or MATLAB, > 1 also prints the full path lists

OUTPUTS:
  • common – cell array of path entries common to system and MATLAB

  • system_not_matlab – cell array of path entries in the system but not MATLAB

  • matlab_not_system – cell array of path entries in MATLAB but not the system

Example

[common, system_not_matlab, matlab_not_system] = comparePaths(‘LD_LIBRARY_PATH’, 1);

editCobraToolboxPath(basePath, folderPattern, method)[source]

Recursively finds all the folders within a given basePath that contain a given folderPattern and either adds or removes that folder from the MATLAB path

USAGE:

editCobraToolboxPath (basePath, folderPattern, method)

OPTIONAL INPUTS:
  • basePath – the base folder to search recursively (default: the folder containing initVonBertalanffy)

  • folderPattern – the substring a folder path must contain to be added to or removed from the MATLAB path (default: [filesep ‘new’])

  • method‘add’ to add matching folders to the MATLAB path, ‘remove’ to remove them (default: ‘remove’)