

7) Generate step response for second order LTI system.
clf;
t = linspace(0,5,100);
s = %s;
num = 100;
den = s^2 + 4*s + 100;
sys = syslin('c', num , den);
y = csim('step' , t , sys);
plot(t,y);
xgrid();
xlabel('time');
ylabel('response');
title('step response for second order LTI system for underdamped/palash-jain','fontsize',3);

This is the case of underdamped system, since (damping ratio < 1) (zeta = 0.2).
To execute above code ,click HERE
For theory in control system, click HERE

This is the case of critically damped system, since (damping ratio = 1).
To execute above code ,click HERE
For theory in control system, click HERE

This is the case of overdamped system, since (damping ratio > 1) (zeta= 4).
To execute above code ,click HERE
For theory in control system, click HERE
8) Generate impulse response for second order LTI system.
clf;
t = linspace(0,5,100);
s = %s;
sys = syslin('c', 100 , s^2+ 4*s + 100);
y = csim('impulse' , t , sys);
plot(t,y);
xgrid();
xlabel('time');
ylabel('response');
title('impulse response for second order LTI system for under damped/palash-jain','fontsize',3);

This is the case of underdamped system, since (damping ratio < 1) (zeta = 0.2).
To execute above code ,click HERE
For theory in control system, click HERE

This is the case of critically damped system, since (damping ratio = 1).
To execute above code ,click HERE
For theory in control system, click HERE

This is the case of over damped system, since (damping ratio > 1) (zeta = 4).
To execute above code ,click HERE
For theory in control system, click HERE
9) Generate ramp response for second order LTI system.
clf;
r = linspace(0,5,100);
t = linspace(0,5,100);
s = %s;
sys = syslin('c', 100 , s^2 + 4*s + 100);
y = csim(r , t , sys);
plot(t,y);
xgrid();
xlabel('time');
ylabel('response');
title('ramp response for second order (underdamped) LTI system/palash-jain','fontsize',4);

This is the case of under damped system, since (damping ratio < 1) (zeta = 0.2).
To execute above code ,click HERE
For theory in control system, click HERE

This is the case of critically damped system, since (damping ratio = 1) .
To execute above code ,click HERE
For theory in control system, click HERE

This is the case of over damped system, since (damping ratio > 1) (zeta = 4).
To execute above code ,click HERE
For theory in control system, click HERE