Different simulation results using discrete and continous systems
显示 更早的评论
I have a simple system (H(s) = 1/s^2+10s+20). I've added a proportional controller(Kp = 300) to the system to observe the step response. I used Simulink to do this (fixed-step size: 0.01, solver: ode8).
I also used the c2d function to create the z-transform (H(z)= c2d(H,0.01)) and then added the same proportional controller to observe the step response. In this case, I used both Simulink (fixed-step size: 0.01, solver: discrete) and a simple m file I wrote using the difference equation coming from the z-transform.
Now, I have three step responses. All of them have the same steady state response but the transient response is different (overshoot amplitude is different between all three).
I appreciate if someone can explain to me why this is happening.
Omid
2 个评论
Azzi Abdelmalek
2013-10-30
You have the continuous and discrete system, what is the third?
回答(1 个)
Azzi Abdelmalek
2013-10-30
0 个投票
Why are you expecting to get the same step response for both continuous and discrete model with the same continuous proportional controller? If you want to get the same step response you should apply c2d to the continuous model in a closed loop: Kp*H(p)/(1+Kp*H(p))
类别
在 帮助中心 和 File Exchange 中查找有关 Interactive and Graphical Tuning 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!