Skip to content

Commit d2c7903

Browse files
committed
add docs
1 parent fbc5c5b commit d2c7903

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/ControlSystemsBase/src/root_locus.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@ const Polynomials = ControlSystemsBase.Polynomials
22
import ControlSystemsBase.RootLocusResult
33
@userplot Rlocusplot
44

5+
"""
6+
rlocusplot(siso_sys)
7+
rlocusplot(sys::StateSpace, K::Matrix; output=false)
8+
9+
Plot the root locus of a system under feedback.
10+
11+
If a SISO system is passed, the feedback gain `K` is a scalar that ranges from 0 to `K` (if provided). If a `StateSpace` system is passed, `K` is a matrix that defines the feedback gain, and the poles are computed as `K` ranges from `0*K` to `1*K`. In this case, `K` is assumed to be a state-feedback matrix of dimension `(nu, nx)`. To compute the poles for output feedback, pass `output = true` and `K` of dimension `(nu, ny)`.
12+
"""
13+
rlocusplot
14+
515

616
function getpoles(G, K::Number; tol = 1e-2, initial_stepsize = 1e-3, kwargs...)
717
issiso(G) || error("root locus with scalar gain only supports SISO systems, did you intend to pass a feedback gain matrix `K`?")

0 commit comments

Comments
 (0)