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)

Answers (0)

Asked:

on 22 Oct 2020

Community Treasure Hunt

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

Start Hunting!