I am familiar with using matlabpool
and parfor
, but I still need to speed up the calculation.
I have a more powerful computer on my 1 GB network. Both computers have R2010b and have the same code and paths.
What is the easiest way to use both computers for parallel computing?
Sample code that I use today:
--- main.m ---
matlabpool('open', 3); % ... x = randn(1e5,1); y = nan(size(x)); parfor k = 1 : length(x) y(k) = myfunc(x(k)); end
--- myfunc.m ---
function y = myfunc(x) y = x; % some computation return
source share