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.
Manipulate[RootLocusPlot[k(100 s(s + 10)/(s + 25)(s - 10)(s^2 - 225)), {k, 0, 30}, PlotRange -> All, AspectRatio -> 1, PoleZeroMarkers -> {Automatic, "ParameterValues" -> kVal}], {kVal, 0, 30}]