MATLAB Answers

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

2 ビュー (過去 30 日間)
Germán
Germán 2012 年 11 月 8 日
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!

  0 件のコメント

Sign in to comment.

回答 (1 件)

Thomas Ibbotson
Thomas Ibbotson 2012 年 11 月 19 日
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

  1 件のコメント

Thomas Ibbotson
Thomas Ibbotson 2012 年 11 月 21 日
There is now a bug report (892992) for this issue at http://www.mathworks.com/support/bugreports/

Sign in to comment.


Translated by