% -*- texinfo -*- % @deftypefn {Function File} {[@var{y}, @var{t}] =} impulse (@var{sys}, @var{inp}, @var{tstop}, @var{n}) % Impulse response for a linear system. % The system can be discrete or multivariable (or both). % If no output arguments are specified, @code{impulse} % produces a plot or the impulse response data for system @var{sys}. % % @strong{Inputs} % @table @var % @item sys % System data structure. % @item inp % Index of input being excited % @item tstop % The argument @var{tstop} (scalar value) denotes the time when the % simulation should end. % @item n % the number of data values. % % Both parameters @var{tstop} and @var{n} can be omitted and will be % computed from the eigenvalues of the A Matrix. % @end table % @strong{Outputs} % @table @var % @item y % Values of the impulse response. % @item t % Times of the impulse response. % @end table % @seealso{step} % @end deftypefn