help with passing cell array argument to function running on worker with batch

2 vues (au cours des 30 derniers jours)
Germán
Germán le 8 Nov 2012
I'm trying to pass a cell array argument to a function that should run on a worker using batch. I'm using:
batch(@myFunction,0,{CellArrayInput});
I also tried
batch(@myFunction,0,CellArrayInput);
but none of them work. Is it even possible to pass cell array arguments?
Thanks for your help!

Réponses (1)

Thomas Ibbotson
Thomas Ibbotson le 19 Nov 2012
Thanks for reporting this issue, unfortunately you have uncovered a bug in the Parallel Computing Toolbox. For now I'm afraid you'll have to find a way to pass the arguments to your function using something other than a cell array.
I have reported the issue to the developers. Sorry that I couldn't provide you with a more satisfactory answer.
Thanks, Tom

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by