I am trying to calculate gains ( Kp, Ki, Kd ) of a PID controller. I have to improve the response of a plant. I already have the Transfer function of the plant. I was wondering if matlab has some command for calculation of controller gains ( kp ki and kd ) from the transfer function of the plant and it finds those gains based on certain parameters ( less than 5% OS, no Steady State error ) PS - I would highly appreciate solutions other than simulink **EDIT:** TF = 1.546/s+0.497