MATLAB: How to import multiple variables from a specified lab to the MATLAB client workspace using a single call to the PMODE command in Parallel Computing Toolbox 4.1 (R2009a)

lab2clientparallelParallel Computing Toolbox

I am creating a parallel command window having 4 labs. I am executing code in a specified lab which generates results that are stored in multiple variables. I am trying to import these variables into the MATLAB Client workspace. I am using the following command
pmode lab2client labvar lab clientvar
However, this command allows me to import only one lab variable (labvar) from a specified lab to a client variable (clientvar) at a time. I would like to be able to import multiple variables using a single call to the PMODE LAB2CLIENT command.

Best Answer

The ability to import multiple variables at a time using the PMODE LAB2CLIENT is currently not available in Parallel Computing Toolbox 4.1 (R2009a).
To workaround this issue, you can try the following:
1. Use multiple PMODE statements, one for each variable
2. In the lab, you can create a CELL array containing all the variables you would like to import into your client. Now, you can use the PMODE LAB2CLIENT command to read in the CELL array.