A simple PID controller written in MATLAB
Simulations containing data tables and graphs for the following P, I, and D values ignores disturbance. Formula of PID controller is provided below:
While for MATLAB, another simplified formula is provided as well:
As the value of derivatives increases, the final value becomes to merge in faster rate. If the value of derivatives is negative, the model is fluctuating around the set point.