GeoEco.Matlab.MatlabDependency.FindMatlab

classmethod MatlabDependency.FindMatlab(setPath=False, loggingQueue=None)

Finds where MATLAB or the MATLAB Runtime is installed.

Parameters:
  • setPath (bool, optional) – If True, this function will set the the LD_LIBRARY_PATH (on Linux) or PATH (on Windows) environment variable as necessary to allow MATLAB to be accessed from Python.

  • loggingQueue (Queue, optional) – multiprocessing.queues.Queue object to which logging messages should be posted. If not given, messages will be logged to the GeoEco logger with Python’s logging module.

Returns:

Old value of the environment variable, when setPath is True. An empty string if the variable was not defined. Always None if setPath is False.

Return type:

str