MATLAB: How to pass data between parfeval

parallel computing

I'd like to run two jobs on the background using parfeval while I hope they can communicate between each other by passing the data from one job to another. For example, job A generates a data and the job B receives it. How should this work out?

Best Answer

Possibly a pollable queue https://www.mathworks.com/help/distcomp/send.html -- but I cannot tell from the documentation whether it only works for parfor or if it works for parfeval as well.