Control System Toolbox offers several tools and commands for tuning PID controllers. To select the best tool for your application, see Choosing a PID Controller ...
www.mathworks.com