Specifications

Table Of Contents
lsim
16-128
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)
lsim
evaluates the specified sample time, gives this warning
Warning: Input signal is undersampled. Sample every 0.016 sec or
faster.
and produces this plot.
To improve onthis response,discretize using therecommendedsampling
period:
dt=0.016;
ts=0:dt:5;
us = (rem(ts,1)>=0.5)
hd = c2d(h,dt)
Hs
()