title: Redirect lsim output to a vector
body: <p>I have been using this function to simulate output of a linear system</p>
  
  <pre><code>lsim(sys, [ ones(1,40/0.04+1) ], 0:0.05:50 )
  </code></pre>
  
  <p>It have been very useful so far, but now I want to manipulate the output data before plotting it. I am been looking for a function like lsim but that redirects the output to a vector, but I couldnt find it. </p>