Error with parfor and oop

Hi, I am using 2011b. When I try to use parfor in the following:
local_session_vector = my_object.empty(number_of_sessions,0);
matlabpool('open',3)
parfor i=1:number_of_sessions
local_name = directory_list{i};
local_path = [local_directory,local_name,separator];
local_session_vector(i) = my_object(local_path);
end
matlabpool('close')
I get an error message:
Error using parallel_function (line 598)
Not enough input arguments.
The loop performs correctly when using for instead of parfor. Any idea why? Is it a known issue between parfor and oop?

回答 (1 件)

Matt J
Matt J 2013 年 2 月 8 日

0 投票

Just try rebooting and see if the problem goes away.

カテゴリ

ヘルプ センター および File ExchangeParallel for-Loops (parfor) についてさらに検索

製品

タグ

質問済み:

2013 年 2 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by