Total number of workers operating in parallel on current
n = numlabs
n = numlabs returns the total
number of workers currently operating on the current job. This value
is the maximum value that can be used with labSend and labReceive.
In an spmd block, numlabs on
each worker returns the parallel pool size.
However, inside a parfor-loop, numlabs always
returns a value of 1.
labindex | labSendReceive
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries