This video shows how to use the MatLab pid() function and the effect of changing the parameters Kp, Ki and Kd.
www.youtube.com