title: Alternate method to kron
body: <p>I'm doing CDMA spreading in <a href="http://en.wikipedia.org/wiki/MATLAB" rel="nofollow noreferrer">MATLAB</a>. And I'm having an Out of Memory error in MATLAB despite upgrading my RAM, preallocating arrays, etc.</p>
  
  <p>Is there an alternate method to <a href="http://www.mathworks.com/access/helpdesk/help/techdoc/ref/kron.html" rel="nofollow noreferrer">kron</a> (<a href="http://en.wikipedia.org/wiki/Kronecker_product" rel="nofollow noreferrer">Kronecker tensor product</a>) in MATLAB? Here is my code:</p>
  
  <pre><code>tempData = kron( Data, walsh); 
  </code></pre>
  
  <p><code>Data</code> is a M by 1 matrix and <code>walsh</code> (spread code) is a 8 by 1 matrix.</p>
  
  <p>My Data is comprises of real and imaginary parts, e.g.: <code>0.000 + 1.000i</code> or <code>1.000 + 0.000i</code> in double format.</p>