Skip to content

Commit 56939a5

Browse files
committed
Provide better example system for margin docstring
1 parent 2f90b03 commit 56939a5

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

control/matlab.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,14 +1148,9 @@ def margin(*args):
11481148
11491149
Examples
11501150
--------
1151-
>>> sys = ss("1. -2; 3. -4", "5.; 7", "6. 8", "9.")
1152-
>>> gm, pm, wg, wp = margin(sys)
1153-
margin: no magnitude crossings found
1154-
1155-
.. todo::
1156-
better ecample system!
1151+
>>> sys = tf(1, [1, 2, 1, 0])
1152+
>>> gm, pm, Wcg, Wcp = margin(sys)
11571153
1158-
#>>> gm, pm, wg, wp = margin(mag, phase, w)
11591154
"""
11601155
if len(args) == 1:
11611156
sys = args[0]

0 commit comments

Comments
 (0)