title: efficient parallel(vector) matrix-times matlab
body: <p>Does anyone know how to do array matrix multiplication in matlab? i.e. I have two 3 dimensional arrays consisting of sets of matrices in the first 2 dimensions and I would like to multiply each matrix in the first array with the corresponding one in the second array.  So, i.e. if </p>
  
  <pre><code>A=randn(3,3);
  B=cat(3,A,A); 
  </code></pre>
  
  <p>I would like [[operation]] such that </p>
  
  <pre><code>B[[operation]]B = cat(3,A*A, A*A) 
  </code></pre>
  
  <p>done in efficient vector form.  </p>
  
  <p>Many thanks in advance.</p>