title: Matlab parallel processing using a network computer
body: <p>I'm familiar with <code>matlabpool</code>, and <code>parfor</code> usage, but I still need to speedup the computation. </p>
  
  <p>I have a more powerful computer in my 1GB network. Both computers have R2010b, and have the same code and paths.</p>
  
  <p>What is the simplest way to use both computers for parallel computation? </p>
  
  <p>Example of the code I use today:</p>
  
  <p>--- main.m---</p>
  
  <pre><code>matlabpool('open', 3);
  % ...
  x = randn(1e5,1);
  y = nan(size(x));
  parfor k = 1 : length(x)
      y(k) = myfunc(x(k));
  end
  </code></pre>
  
  <p>--- myfunc.m---  </p>
  
  <pre><code>function y = myfunc(x)
      y = x; % some computation
  return
  </code></pre>