FUNCTION REFERENCE
rlocus
Compute or plot a SISO root locus.
Compute or plot a SISO root locus.
Syntax
[r,k] = rlocus(sys)Syntax
[r,k] = rlocus(sys,k)Syntax
rlocus(sys)Each column of r contains the closed-loop roots of den+k*num for one gain. Supplied gains are finite nonnegative vectors, preserved in their given order. With no outputs, draws each branch separately (a point marker for one gain), open-loop poles as x and zeros as o. Successive roots are greedily matched to the nearest unused previous root; labels at crossings or repeated roots are ambiguous. Automatic gains start with zero plus 81 logarithmic values from 1e-4 to 1e4 times max(abs(den))/max(abs(num)). An interval is bisected when branch movement exceeds 5% of 1+min(endpoint magnitudes), or midpoint chord error exceeds 1% of 1+midpoint magnitude. Refinement stops after 12 rounds or 4096 gains. A zero numerator uses scale 1; scale is bounded to [1e-100,1e100].
Example
[r,k]=rlocus(tf(1,[1 3 2]),[0 0.1 1 10 100]);Example
rlocus(tf([1 2],[1 4 5 0]),[0 0.1 1 10 100]);Differences from MATLAB: proper real SISO models only, at most 128 poles and 4096 gains; plots also obey the graphics limit of 64 total branch/marker series. A gain cancelling the leading coefficient is rejected because infinite poles are not represented. The finite adaptive grid and greedy branch labels can differ; branches beyond the selected range are not guaranteed to reach their asymptotes.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.