How to code a PID controller using int and diff function?
显示 更早的评论
dt = 1;
for i=1:dt:20
e1=x1d-y(1);
Ux=kp5*e1+ki5*integral(e1,0,Inf)+kd5*diff(e1)
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 PID Controller Tuning 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!