Page 1 of 1

parallel computing and mex interface

Posted: Sun Sep 06, 2020 6:22 pm
by yangkaiwen
the following setup results in a straight error when I tried to use parallel computing in Matlab, any ideas?

obj=matlab_engine();
obj=setup('hopper.osim');

parfor i=1:100
% iterative work involving using obj
end

Matlab gives Error: "Invalid id 2049871008. Did you create?"

Is there any work around?