Control System Toolbox™ software gives you several tools for
designing PID controllers.
Automatic, interactive tuning of SISO PID controller
in the feed-forward path of single-loop, unity-feedback control configuration.
Interactive fitting of a plant model from measured
SISO response data and automatic tuning of PID controller for the
resulting model (requires System Identification Toolbox™ software).