This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Task object currently being evaluated in this worker session


task = getCurrentTask



The task object that the worker session is currently evaluating.


task = getCurrentTask returns the Parallel.Task object whose function is currently being evaluated by the MATLAB worker session on the cluster.


If the function is executed in a MATLAB® session that is not a worker, you get an empty result.

Introduced before R2006a