Z-N PID Controller Tuning

Using this m-file, you can calculate the Z-N PID Controller in 2 - Methods
3.3K Downloads
Updated 9 Jan 2011

View License

Method 1 . Using Step Response and Delay Time and Time Constant Parameters.

Method 2 . Using proportional controller action only. you should find critical gain and corresponding critical period.

all results come in 2 different output shape.
1- Controller with (Kp - Ti - Td)
2- Controller with (Kp - Ki - Kd)

These methods aimed at obtaining 25% maximum overshoot in step response.

>>> So the Z-N method just makes an initial PID Controller coefficients.
for a better controller you have to optimize the coefficient using many existing methods.

S.R.Ahmadzadeh

Cite As

Reza Ahmadzadeh (2026). Z-N PID Controller Tuning (https://www.mathworks.com/matlabcentral/fileexchange/29983-z-n-pid-controller-tuning), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0