title: Is it possible to have a recursive anonymous function in MATLAB?
body: <p>I repeatedly want to apply a function, using a past output as the new input. For readability (I'm writing from a mathematics perspective, not a programmer's perspective), I would like to define it as a simple anonymous function instead of a full function block. So, instead of something like</p>
  
  <pre><code>function f=myfun(x,n)
      if n&gt;1
          f=myfun(myfun(x,n-1),1);
      else
          f=expression(x);
      end
  end
  </code></pre>
  
  <p>I would like to be able to write</p>
  
  <pre><code>f=@(x,n) ????
  </code></pre>
  
  <p>Is there any way this is possible?</p>