6 Program 5.9 Ogata 4edition (response to unit-step input) Let us draw the response to unit-step input by Scilab, getting the same answer the the program 5.8. Program in Scilab: num=poly([1 0 0],'s','coeff'); den=poly([1 0.2 1],'s','coeff'); t=0:0.1:70; g=syslin('c',num/den); gs=csim('impulse',t,g); clf plot2d(t,gs); xgrid; xtitle('Response to unit-step, G(s) =1/(s^2+0.2s+1)','t(seg)','Output');
num=poly([1 0 0],'s','coeff'); den=poly([1 0.2 1],'s','coeff'); t=0:0.1:70; g=syslin('c',num/den); gs=csim('impulse',t,g); clf plot2d(t,gs); xgrid; xtitle('Response to unit-step, G(s) =1/(s^2+0.2s+1)','t(seg)','Output');