| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Parallel Computing Toolbox |
| Contents | Index |
| Learn more about Parallel Computing Toolbox |
labSend(data, destination)
labSend(data, destination, tag)
data | Data sent to the other lab; any MATLAB data type. |
destination | labindex of receiving lab. |
tag | Nonnegative integer to identify data. |
labSend(data, destination) sends the data to the specified destination, with a tag of 0.
labSend(data, destination, tag) sends the data to the specified destination with the specified tag. data can be any MATLAB data type. destination identifies the labindex of the receiving lab, and must be either a scalar or a vector of integers between 1 and numlabs; it cannot be labindex (i.e., the current lab). tag can be any integer from 0 to 32767.
This function might return before the corresponding labReceive completes in the receiving lab.
For a demonstration that uses labSend, labReceive, labBarrier, and labSendReceive, see the demo Profiling Explicit Parallel Communication.
labBarrier, labindex, labProbe, labReceive, numlabs
![]() | labReceive | labSendReceive | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |