@@ -1480,29 +1480,32 @@ def _convert_to_transfer_function(
14801480 sys , inputs = 1 , outputs = 1 , use_prefix_suffix = False ):
14811481 """Convert a system to transfer function form (if needed).
14821482
1483- If sys is already a transfer function, then it is returned. If sys is a
1484- state space object, then it is converted to a transfer function and
1485- returned. If sys is a scalar, then the number of inputs and outputs can be
1486- specified manually, as in:
1483+ If ` sys` is already a transfer function, then it is returned. If ` sys`
1484+ is a state space object, then it is converted to a transfer function
1485+ and returned. If ` sys` is a scalar, then the number of inputs and
1486+ outputs can be specified manually, as in: :
14871487
14881488 >>> from control.xferfcn import _convert_to_transfer_function
14891489 >>> sys = _convert_to_transfer_function(3.) # Assumes inputs = outputs = 1
14901490 >>> sys = _convert_to_transfer_function(1., inputs=3, outputs=2)
14911491
1492- In the latter example, sys's matrix transfer function is [[1., 1., 1.]
1493- [1., 1., 1.]].
1492+ In the latter example, the matrix transfer function for `sys` is::
14941493
1495- If sys is an array-like type, then it is converted to a constant-gain
1494+ [[1., 1., 1.]
1495+ [1., 1., 1.]].
1496+
1497+ If `sys` is an array-like type, then it is converted to a constant-gain
14961498 transfer function.
14971499
14981500 Note: no renaming of inputs and outputs is performed; this should be done
14991501 by the calling function.
15001502
1501- >>> sys = _convert_to_transfer_function([[1., 0.], [2., 3.]])
1503+ Arrays can also be passed as an argument. For example::
1504+
1505+ sys = _convert_to_transfer_function([[1., 0.], [2., 3.]])
15021506
1503- In this example, the numerator matrix will be
1504- [[[1.0], [0.0]], [[2.0], [3.0]]]
1505- and the denominator matrix [[[1.0], [1.0]], [[1.0], [1.0]]]
1507+ will give a system with numerator matrix `[[[1.0], [0.0]], [[2.0],
1508+ [3.0]]]` and denominator matrix `[[[1.0], [1.0]], [[1.0], [1.0]]]`.
15061509
15071510 """
15081511 from .statesp import StateSpace
0 commit comments