19 Problem A.5.15 Ogata 4edition (Response to function) Let's plot the response to input by Scilab: Program in Scilab: s=%s; num=5; den=s^2+s+5; cr=syslin('c',num/den); t=0:0.01:10; r1=2+t; c1=csim(r1,t,cr); clf; plot2d(t,c1,2); plot2d(t,r1,3); xtitle('Response to input r(t)=2+t','t(seg)','Amplitude'); legends(['Input','Output'],[3,2],opt=4) xgrid;
s=%s; num=5; den=s^2+s+5; cr=syslin('c',num/den); t=0:0.01:10; r1=2+t; c1=csim(r1,t,cr); clf; plot2d(t,c1,2); plot2d(t,r1,3);
xtitle('Response to input r(t)=2+t','t(seg)','Amplitude'); legends(['Input','Output'],[3,2],opt=4) xgrid;