the transfer function 1/(s^2+10s+20) closed-loop transfer function is therefore ( Kds^2+Kps+ki )/ [s^3+(10+Kd)s^2+(20+Kp)s+Ki]
running the following code in command window generates as what figure1 shows.
Kp=350; Ki=300; Kd=50;
num=[Kd Kp Ki]; den=[1 10+Kd 20+Kp Ki];
t=0:0.01:2; step(num,den,t)
tried to obtain the same plot of same characteristics by using Simulink http://imageshack.us/photo/my-images/861/83492059.jpg/
http://imageshack.us/photo/my-images/254/31185574.jpg/ how come there is delay? and the peak amplitube exceeds 1 that step response generated by m-file doesnt? would also like to know how to tell some characteristics like rise time, settling time from the plot generated by scope?
detailed explanations are appriciated,thank you
Best Answer