How do I perform PID controller from error by using matlab script?

9 views (last 30 days)
Ahmed Desoky
Ahmed Desoky on 29 Nov 2019
Edited: Ahmed Desoky on 29 Nov 2019
I want to change the PID that is shown in this figure to matlab script
I am tring to use
PID=Kp*ev + Ki * integral(ev)+ Kd * diff(ev);
But the term "Ki * integral(ev)" gives an error

Answers (0)

Tags

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!