Paralell execution of COM instances
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hello!
I'm just trying to improve our test environment with the Paralell Toolbox; however I face a problem with starting several instances of Matlab by COM objects. So what I try to do basically is calling the function
function testpar
ML=ver('Matlab');
ML_Path=matlabroot;
ML_Ver=ML.Version;
res = [];
tic
parfor i=1:3
NewMatlab = actxserver(['matlab.application.single.',ML_Ver]);
Answer = NewMatlab.Feval('test',1);
res(i) = Answer{1};
NewMatlab.Quit;
NewMatlab.release;
end
disp(toc)
end
where the function "test" is simply
function a = test
a = 10;
for i = 1:10
a = a + i;
end
end
Unfortunately it seems to me that instead of opening three instances of Matlab in paralell the instances are called sequentially.
Is there any possibility to call the COM instances paralell?
Thanks a lot!
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!