User`s guide

Table Of Contents
lsim
11-129
Note that if you begin the simulation with a nonzero value for t(1), then the
zero-initial condition response is shifted in time, as shown below.
lsim(H,u,t+4)
Algorithm Discrete-time systems are simulated with ltitr (state space) or filter
(transfer function a nd zero-pole-gain).
Continuous-time systems are discretized with
c2d using either the 'zoh' or
'foh' method ('foh' is used for smooth input signals and 'zoh' for
discontinuous signals such as pulses or square waves). By default, the
sampling period is set to the spacing
dt between the user-supplied time
samples
t. However, if dt is not small enought o capture intersample behavior,
lsim selects a smaller sampling period and resamples the input data using
linear interpolation for smooth signals and zero-order hold for square signals.
Thetimevectorreturnedby
lsim is then different from the specified t vector.