title: What is the problem with the size of the moving window (movfun) in octave?
body: <p>I'm trying to use movfun (moving window) in octave</p>
  <pre><code>x = -1000:0.1:1000
  y = sin(x)
  movfun(@(arg) printf(&quot;%d\n&quot;, size(arg)), y(1:100), 4)
  </code></pre>
  <p>I expect to see all 4s</p>
  <p>However, surprisingly (to me) I get:</p>
  <pre><code>4
  1
  4
  97
  2
  1
  3
  1
  3
  1
  ans =
  
   Columns 1 through 29:
  
     4   4   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5
  
   Columns 30 through 58:
  
     5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5
  
   Columns 59 through 87:
  
     5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5   5
  
   Columns 88 through 100:
  
     5   5   5   5   5   5   5   5   5   5   5   5   4
  
  </code></pre>
  <p>What is wrong with my expectations?</p>