title: Multiply a 180x360 array by a 156-item time-series to get 180x360x156 array?
body: <pre><code>bsxfun(@times,RegressIndexFlux.(IndexNames{i}).(FluxNames{j}), Indices.(IndexNames{i}));
  </code></pre>
  
  <p>So my code is above.</p>
  
  <p>The problem with bsxfun is that I get the below error message:</p>
  
  <pre><code>Error using bsxfun
  Non-singleton dimensions of
  the two input arrays must
  match each other.
  </code></pre>
  
  <p>So here's the question: is there a way for me to convert the 180x360 array by a timeseries without having to use for loops, if possible? (I'm using many structures of 180x360 arrays here). Basically <code>RegressIndexFlux</code> is regressed against the time-series <code>Indices</code>, and I'm trying to get a reconstruction of the time-series by only using the regression.</p>