We now use the root locus to find the gain for stability. First, we create a digital LTI transfer-function object forG(z) = N(z)/D(z), with an unspecified sampling interval. The LTI object is created using tf(numgz, dengz,[ ]), where numgz represents N(z), dengz represents D(z), and [ ] indicates an unspecified sampling interval. MATLAB produces a z-plane root locus along with the unit circle superimposed using the command, zgrid ([ ],[ ]). We then interactively select the intersection of the root locus and the unit circle. MATLAB responds with the value of gain and the closed-loop poles. Let us look at Example 13.10.