Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.



Re: what is MATLAB POOL ?
Posted:
May 16, 2012 2:32 PM


%% open your matlab pool of processors. This is a number less than the cores in your computer. This is not the GPU cuda integration.
matlabpool open 2
%% Setup your function list. % these are the two function I want to run independently on each core. funList = {@func1,@func2}; % this is the input for each function. Use structures for functions with multiple inputs. dataList = {data1,data2};
%% Now run the functions. spmd labBarrier output = funList{labindex}(dataList{labindex}); end
%% Now you need to reed your input. process1output = output{1}; process2output = output{2};
%% Once you close the lab you cant access output. matlabpool close



