分類我有一個parfor loop
這樣的:變量`X`在PARFOR不能在MATLAB
parfor i=1:20
for j=1:5
%% Some codes
[~,~,~,AUC]=perfcurve(testTargets,testOutputs,'1');
AUC_T(i)=AUC;
end
%% averaging between AUC_Ts in outputs of j=1:5
end
我有這段代碼運行後,此錯誤:
The variable AUC_T in a parfor cannot be classified.
See Parallel for Loops in MATLAB, "Overview".
我想存儲AUC值並使用它parfor loop
。什麼是問題,我該如何解決它?
感謝
您之前使用過parfor嗎?如果沒有,你可能想閱讀文檔或摘要:http://blogs.mathworks.com/loren/2009/10/02/using-parfor-loops-getting-up-and-running/#12 – 2014-09-21 21:52:14