Simulation of Dynamic Systems with lsim Command
摘要
The MATLAB’s lsim(sys, u, t) command plots the simulated time response of the dynamic system model sys to the input history (t, u). The vector t specifies the time samples for the simulation. For single-input systems, the input signal u is a vector of the same length as t. The lsim command can be used with both continuous and discrete time systems. This chapter shows how lsim command can be used to simulate dynamical systems for different inputs.