4THEXP
4THEXP
s = %s;
tf = syslin('c', 1 / (s^2 + 5*s + 6));
t = 0:0.01:50;
c = csim('step', t, tf);
plot(t, c, 'b');
xgrid();
xtitle('Step Response', 'Time (sec)', 'c(t)');
RAMP RESPONSE:
s = %s;
tf = syslin('c', 1 / (s^2 + 5*s + 6));
t = 0:0.01:50;
u = tf/s;
c = csim('step', t, u);
plot(t, c, 'b');
xgrid();
xtitle('Ramp Response', 'Time (sec)', 'c(t)');
PARABOLIC:
s = %s;
tf = syslin('c', 1 / (s^2 + 5*s + 6));
t = 0:0.01:50;
u = tf/(s^2);
c = csim('step',t,u);
plot(t, c,'b');
xgrid(14,1,7);
xtitle('Parabolic Response', 'Time(sec)', 'c(t)');
IMPULSE RESPONSE:
s = %s;
tf = syslin('c', 1 / (s^2 + 5*s + 6));
t = 0:0.01:50;
c = csim('impulse', t, tf);
plot(t, c ,'b');
xgrid();
xtitle('Impulse Response', 'Time (sec)', 'c(t)');