PID Controller Matlab Code

This folder contains the files to simulate a PID controller for a first order time delay system

You are now following this Submission

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.

Cite As

Derick Suranga Widanalage (2026). PID Controller Matlab Code (https://ch.mathworks.com/matlabcentral/fileexchange/22150-pid-controller-matlab-code), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Updated