Create an Interactive Root Locus Plot

A root locus plot shows the closed-loop poles of a system on the complex plane, plotting the roots of a polynomial. Based on the location of the roots, you can get a lot of information about the system. The gain in the system () is varied, so the poles trace out paths. Below, PoleZeroMarkers is used to dynamically highlight the pole locations for a given gain.