Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

addAttachedFiles

Attach files or folders to parallel pool

Syntax

  • addAttachedFiles(poolobj,files)
    example

Description

example

addAttachedFiles(poolobj,files) adds extra attached files to the specified parallel pool. These files are transferred to each worker and are treated exactly the same as if they had been set at the time the pool was opened — specified by the parallel profile or the 'AttachedFiles' argument of the parpool function.

Examples

collapse all

Add two attached files to the current parallel pool.

poolobj = gcp;
addAttachedFiles(poolobj,{'myFun1.m','myFun2.m'})

Input Arguments

collapse all

Pool to which files attach, specified as a pool object.

Example: poolobj = gcp;

Files or folders to attach, specified as a character vector or cell array of character vectors. Each character vector can specify either an absolute or relative path to a file or folder.

Example: {'myFun1.m','myFun2.m'}

Introduced in R2013b


Was this topic helpful?