Skip to Main Content Skip to Search
Product Documentation

getFileDependencyDir - Directory where FileDependencies are written on worker machine

Syntax

depdir = getFileDependencyDir

Arguments

depdir

String indicating directory where FileDependencies are placed.

Description

depdir = getFileDependencyDir returns a string, which is the path to the local directory into which FileDependencies are written. This function will return an empty array if it is not called on a MATLAB worker.

Examples

Find the current directory for FileDependencies.

ddir = getFileDependencyDir;

Change to that directory to invoke an executable.

cdir = cd(ddir);

Invoke the executable.

[OK, output] = system('myexecutable');

Change back to the original directory.

cd(cdir);

See Also

FileDependencies | getCurrentJob | getCurrentJobmanager | getCurrentTask | getCurrentWorker

  


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