title: How to get all outputs (MatLab)?
body: <p>Suppose I have a function that gives out unknown number of output arguments (it depends on input,thus change through the loops). How to get all of them?</p>
  
  <p><code>nargout</code> doesn't help as the function uses <code>varargout</code> (the result is -1)</p>
  
  <p>And of course I can't rewrite the function, otherwise the question wouldn't arise :- )</p>