User`s guide

Table Of Contents
lsim
11-130
To illustrate why resampling is sometimes necessary, consider the
second-order model
Tosimulateits responsetoasquarewavewithperiod1 second,youcanproceed
as follows:
w2 = 62.83^2
h = tf(w2,[1 2 w2]);
t = 0:0.1:5; % vector of time samples
u = (rem(t,1)>=0.5); % square wave values
lsim(h,u,t)
Hs()
ω
2
s
2
2s ω
2
++
-------------------------------
,= ω 62.83=