User`s guide

4-3
Asynchronous Function Evaluation on Parallel Pool
You can evaluate functions asynchronously on one or all workers of a parallel pool. Use
parfeval to evaluate a function on only one worker, or use parfevalOnAll to evaluate
a function on all workers in the pool.
parfeval or parfevalOnAll returns an object called a future, from which you can get
the outputs of the asynchronous function evaluation. You can create an array of futures
by calling parfeval in a for-loop, setting unique parameters for each call in the array.
The following table lists the functions for submitting asynchronous evaluations to a
parallel pool, retrieving results, and controlling future objects. See the reference page of
each for more details.
Function Description
parfeval Evaluate function asynchronously on worker in parallel pool
parfevalOnAll Evaluate function asynchronously on all workers in parallel pool
fetchOutputs Retrieve all output arguments from future
fetchNext Retrieve next available unread future outputs
cancel Cancel queued or running future
wait Wait for future to complete
For more information on parallel future objects, including their methods and properties,
see the parallel.Future reference page.
Compatibility Considerations
This release continues to support MATLAB pool language usage, but this support might
discontinue in future releases. You should update your code as soon as possible to use
parallel pool syntax instead.
New Desktop Pool Indicator
A new icon at the lower-left corner of the desktop indicates the current pool status.