f = parfeval(bPool, fptr, n, x1, ..., xm)
| Parameter | Description |
|---|---|
| bPool | backgroundPool object returned by backgroundPool(). |
| fptr | Function handle: Function to run. |
| n | Number of output arguments. |
| x1, ..., xm | Input arguments, specified as a comma-separated list of variables or expressions. |
| Parameter | Description |
|---|---|
| f | FevalFuture object. |
f = parfeval(bPool, fptr, n, x1, ..., xm) starts the function fptr to run in the background.
backgroundPool hasNumWorkers available. If there are more functions scheduled, functions wait than one entry is available in pool.
parfeval runs the functionfptr on a background worker.
b = backgroundPool()
fptr = str2func('cos');
f = parfeval(b, fptr, 1, 5);
r = fetchOutputs(f)
| Version | Description |
|---|---|
| 1.0.0 | initial version |