Skip to Main Content Skip to Search
Product Documentation

PathDependencies - Specify directories to add to MATLAB worker path

Description

PathDependencies identifies directories to be added to the top of the path of MATLAB worker sessions for this job. If FileDependencies are also used, FileDependencies are above PathDependencies on the worker's path.

When you specify PathDependencies at the time of creating a job, the settings are combined with those specified in the applicable configuration, if any. (Setting PathDependencies on a job object after it is created does not combine the new setting with the configuration settings, but overwrites existing settings for that job.)

Characteristics

Usage

Scheduler job object

Read-only

Never

Data type

Cell array of strings

Values

PathDependencies is empty by default. For a mixed-platform environment, the strings can specify both UNIX-based and Microsoft Windows-based paths; those not appropriate or not found for a particular node generate warnings and are ignored.

Remarks

For alternative means of making data available to workers, see Share Code.

Examples

Set the MATLAB worker path in a mixed-platform environment to use functions in both the central repository (/central/funcs) and the department archive (/dept1/funcs).

sch = findResource('scheduler','name','LSF')
job1 = createJob(sch)
p = {'/central/funcs','/dept1/funcs', ...
     '\\OurDomain\central\funcs','\\OurDomain\dept1\funcs'}
set(job1, 'PathDependencies', p)

See Also

Properties

ClusterMatlabRoot, FileDependencies

  


Free Parallel Computing Interactive Kit

See how to solve large problems with minimal effort and reduce simulation time.

Get free kit

Trials Available

Try the latest versions of parallel computing products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS