How to code a PID controller using int and diff function?
Show older comments
dt = 1;
for i=1:dt:20
e1=x1d-y(1);
Ux=kp5*e1+ki5*integral(e1,0,Inf)+kd5*diff(e1)
Answers (0)
Categories
Find more on PID Controller Tuning in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!