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

2 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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.

More Answers (0)

Categories

Find more on Parallel Computing in Help Center and File Exchange

Products


Release

R2009a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!