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.

getCurrentTask

Task object currently being evaluated in this worker session

Syntax

task = getCurrentTask

Arguments

task

The task object that the worker session is currently evaluating.

Description

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

More About

collapse all

Tips

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

Was this topic helpful?