title: Apply function to rolling window
body: <p>Say I have a long list <code>A</code> of values (say of length 1000) for which I want to compute the <code>std</code> in pairs of 100, i.e. I want to compute <code>std(A(1:100))</code>, <code>std(A(2:101))</code>, <code>std(A(3:102))</code>, ..., <code>std(A(901:1000))</code>. </p>
  
  <p>In Excel/VBA one can easily accomplish this by writing e.g. <code>=STDEV(A1:A100)</code> in one cell and then filling down in one go. Now my question is, how could one accomplish this efficiently in Matlab without having to use any expensive for-loops.<br><br><br></p>
  
  <p><em>edit</em>: Is it also possible to do this for a list of time series, e.g. when <strong>A</strong> has dimensions 1000 x 4 (i.e. 4 time series of length 1000)? The output matrix should then have dimensions 901 x 4.</p>