q = parallel.pool.DataQueue;
parfor i = 1:20
data = ['test - ', num2str(i)];
This is the code I used to send data from the worker nodes to the client node. But I don't know if it helps me store the data I send from the workers to the client. The Queue length happens to be 20 which is correct but if it contains the data, I don't know how to retrieve it. I tried using a PollableDataQueue and poll() but it retrieves only one value which I guess is the last value.
So my questions are :
- Is the method I'm using to store data sent from the workers correct?
- If yes, how do I retrieve the stored data?
- If no, how do I store data sent from the workers in the client?
- Is the method I'm using to send data from the workers to the client correct?