User`s guide
Table Of Contents
- Preface
- Quick Start
- LTI Models
- Introduction
- Creating LTI Models
- LTI Properties
- Model Conversion
- Time Delays
- Simulink Block for LTI Systems
- References
- Operations on LTI Models
- Arrays of LTI Models
- Model Analysis Tools
- The LTI Viewer
- Introduction
- Getting Started Using the LTI Viewer: An Example
- The LTI Viewer Menus
- The Right-Click Menus
- The LTI Viewer Tools Menu
- Simulink LTI Viewer
- Control Design Tools
- The Root Locus Design GUI
- Introduction
- A Servomechanism Example
- Controller Design Using the Root Locus Design GUI
- Additional Root Locus Design GUI Features
- References
- Design Case Studies
- Reliable Computations
- Reference
- Category Tables
- acker
- append
- augstate
- balreal
- bode
- c2d
- canon
- care
- chgunits
- connect
- covar
- ctrb
- ctrbf
- d2c
- d2d
- damp
- dare
- dcgain
- delay2z
- dlqr
- dlyap
- drmodel, drss
- dsort
- dss
- dssdata
- esort
- estim
- evalfr
- feedback
- filt
- frd
- frdata
- freqresp
- gensig
- get
- gram
- hasdelay
- impulse
- initial
- inv
- isct, isdt
- isempty
- isproper
- issiso
- kalman
- kalmd
- lft
- lqgreg
- lqr
- lqrd
- lqry
- lsim
- ltiview
- lyap
- margin
- minreal
- modred
- ndims
- ngrid
- nichols
- norm
- nyquist
- obsv
- obsvf
- ord2
- pade
- parallel
- place
- pole
- pzmap
- reg
- reshape
- rlocfind
- rlocus
- rltool
- rmodel, rss
- series
- set
- sgrid
- sigma
- size
- sminreal
- ss
- ss2ss
- ssbal
- ssdata
- stack
- step
- tf
- tfdata
- totaldelay
- zero
- zgrid
- zpk
- zpkdata
- Index

lsim
11-126
11lsim
Purpose Simulate LTI model response to arbitrary inputs
Syntax lsim(sys,u,t)
lsim(sys,u,t,x0)
lsim(sys1,sys2,...,sysN,u,t)
lsim(sys1,sys2,...,sysN,u,t,x0)
lsim(sys1,'PlotStyle1',...,sysN,'PlotStyleN',u,t)
[y,t,x] = lsim(sys,u,t,x0)
Description lsim simulates the (time) response of continuous or discrete linear systems to
arbitrary inputs. When invoked without left-hand arguments,
lsim plots the
response on the screen.
lsim(sys,u,t) producesaplotofthezero-initialconditiontimeresponseof the
LTI model
sys to the input time hi story t,u.Thevectortspecifies the time
samples for the simulation and consists of regularly spaced time samples
t = T0:dt:Tfinal
The matrix u must have a s many rows as time samples ( length(t))andas
many columns as system inputs. Each row
u(i,:) specifies the i nput value (s)
at the t ime sam pl e
t(i).
The LTI model
sys can be continuous or discrete, SISO or MIMO. In discrete
time,
u mustbesampledatthesamerateasthesystem(tis then redundant
and can be omitted or set to the empty matrix). In continuous time, the time
sampling
dt=t(2)–t(1) is usedto discretize the continuousmodel. Automatic
resampling is performed if
dt is too large (undersampling)and may give rise to
hidden oscillations (see “Algorithm”).
lsim(sys,u,t,x0) specifies a nonzero initial condition x0 for the system
states. This initial condition is applied at
t(1). This syntax applies only to
state-space models.
Finally,
lsim(sys1,sys2,...,sysN,u,t)