From: hajime yamada on
Hello. I am new to the parallel toolbox. I keep getting an error message when I try to run the following code on a multi-cores PC. I am using Matlab 2010a. Anybody knows what is wrong? Any help greatly appreciated.Thank you.


parallel_function at 598.
Error in ==> parallel function>make_general_channel/channel_general at 879
....
'MABLAB:MultipleErrors".

Error==> simple at 62
parfor num_vals = 1:4


-------------- from the file "simple" ------------

mdl = 'parallel_simple';
open_system(mdl);

%The following two lines input and initialize system parameters
initializesParam
load input_data

rtp = Simulink.BlockDiagram.buildRapidAcceleratorTarget(mdl);

matlabpool(4);

parfor num_vals = 1:4
kk = num_vals/10.0; % kk is used in the simulation
out{num_vals} = sim(mdl, 0.2);
filename = sprintf('result_num%d', num_vals);
save(filename)
end

matlabpool close
 | 
Pages: 1
Prev: Modify GUI dynamically
Next: Gray scale conversion