Get worker object from current worker
returns the current
worker, as a
w = getCurrentWorker
parallel.Worker object. Use
getCurrentWorker to get information from the worker during a
computation, such as the worker host name.
getCurrentWorker is evaluated on a worker,
w is a
parallel.Worker object. Otherwise,
w is an empty double.
Get Host Name of Worker
Host property to find the host name of
the current worker.
On a worker, use
getCurrentWorker to get the current worker
w = getCurrentWorker;
Then, use the
Host property to get the host name of the
host = w.Host;
w — Worker object
Worker object, specified as a
parallel.Worker or empty double. When
getCurrentWorker on a worker,
w is the
parallel.Worker object that the current worker is associated with.
When you use
getCurrentWorker on the client,
is an empty double.
Introduced before R2006a