PID controller, transfer function

Anny idea how i can type in the transfer functions for P, PI, PD and PID and compare them in a bode plot together?

回答(1 个)

Something like this would do:(note that this requires Control System Toolbox).
P=pid(1)
PI=pid(1,1)
PD=pid(1,0,1)
PID=pid(1,1,1)
bode(P,PI,PD,PID)
legend('P','PI','PD','PID')

类别

在 帮助中心 和 File Exchange 中查找有关 Get Started with Control System Toolbox 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by