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.


Receive data from another worker


data = labReceive
data = labReceive(srcWkrIdx)
data = labReceive('any',tag)
data = labReceive(srcWkrIdx,tag)
[data,srcWkrIdx,tag] = labReceive



labindex of a particular worker from which to receive data.


Tag defined by the sending worker’s labSend function to identify particular data.


Character vector to indicate that data can come from any worker.


Data sent by the sending worker’s labSend function.


data = labReceive receives data from any worker with any tag.

data = labReceive(srcWkrIdx) receives data from the specified worker with any tag

data = labReceive('any',tag) receives data from any worker with the specified tag.

data = labReceive(srcWkrIdx,tag) receives data from only the specified worker with the specified tag.

[data,srcWkrIdx,tag] = labReceive returns the source worker labindex and tag with the data.


This function blocks execution in the worker until the corresponding call to labSend occurs in the sending worker.

Introduced before R2006a