Most of the time we use Simulink to simulate a PID controller. But this files run it as a Matlab code.
Extract the files to the working directory and just run the file PID_ctrl_call.m.
You can vary the PID tuning parameters in the file pid_ctrl.m and see what will happen.
i want a pid controller
i need reference for velocity algorithm m file
i want pid programming for reactive distillation column
For people looking for a comprehensive collection of resources on PID tuning, design, and implementation, take a look at this page:
Thanks for an interesting submission. If you are interested in designing and tuning PID controllers in MATLAB and Simulink, please take a look at new PID tuning capabilities shipped in Simulink Control Design in R2009b:
There is also a webinar on the subject:
and MATLAB Digest article:
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.