Skip to content

Commit 2d1f514

Browse files
authored
Merge pull request #999 from gdmcbain/998-matlab-rlocus-klist
klist->gains kwarg for matlab.wrappers.rlocus
2 parents 8cb3c65 + cb4244d commit 2d1f514

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

control/matlab/wrappers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,19 +197,19 @@ def _parse_freqplot_args(*args):
197197

198198
# TODO: rewrite to call root_locus_map, without using legacy plot keyword
199199
def rlocus(*args, **kwargs):
200-
"""rlocus(sys[, klist, xlim, ylim, ...])
200+
"""rlocus(sys[, gains, xlim, ylim, ...])
201201
202202
Root locus diagram.
203203
204204
Calculate the root locus by finding the roots of 1 + k * G(s) where G
205205
is a linear system with transfer function num(s)/den(s) and each k is
206-
an element of kvect.
206+
an element of gains.
207207
208208
Parameters
209209
----------
210210
sys : LTI object
211211
Linear input/output systems (SISO only, for now).
212-
kvect : array_like, optional
212+
gains : array_like, optional
213213
Gains to use in computing plot of closed-loop poles.
214214
xlim : tuple or list, optional
215215
Set limits of x axis, normally with tuple
@@ -224,7 +224,7 @@ def rlocus(*args, **kwargs):
224224
Closed-loop root locations, arranged in which each row corresponds
225225
to a gain in gains.
226226
gains : ndarray
227-
Gains used. Same as kvect keyword argument if provided.
227+
Gains used. Same as gains keyword argument if provided.
228228
229229
Notes
230230
-----

0 commit comments

Comments
 (0)