@@ -1439,28 +1439,31 @@ def _convert_to_transfer_function(
14391439 sys , inputs = 1 , outputs = 1 , use_prefix_suffix = False ):
14401440 """Convert a system to transfer function form (if needed).
14411441
1442- If sys is already a transfer function, then it is returned. If sys is a
1443- state space object, then it is converted to a transfer function and
1444- returned. If sys is a scalar, then the number of inputs and outputs can be
1445- specified manually, as in:
1442+ If ` sys` is already a transfer function, then it is returned. If ` sys`
1443+ is a state space object, then it is converted to a transfer function
1444+ and returned. If ` sys` is a scalar, then the number of inputs and
1445+ outputs can be specified manually, as in: :
14461446
1447- >>> sys = _convert_to_transfer_function(3.) # Assumes inputs = outputs = 1
1448- >>> sys = _convert_to_transfer_function(1., inputs=3, outputs=2)
1447+ sys = _convert_to_transfer_function(3.) # Assumes inputs = outputs = 1
1448+ sys = _convert_to_transfer_function(1., inputs=3, outputs=2)
14491449
1450- In the latter example, sys's matrix transfer function is [[1., 1., 1.]
1451- [1., 1., 1.]].
1450+ In the latter example, the matrix transfer function for `sys` is::
14521451
1453- If sys is an array-like type, then it is converted to a constant-gain
1452+ [[1., 1., 1.]
1453+ [1., 1., 1.]].
1454+
1455+ If `sys` is an array-like type, then it is converted to a constant-gain
14541456 transfer function.
14551457
14561458 Note: no renaming of inputs and outputs is performed; this should be done
14571459 by the calling function.
14581460
1459- >>> sys = _convert_to_transfer_function([[1., 0.], [2., 3.]])
1461+ Arrays can also be passed as an argument. For example::
1462+
1463+ sys = _convert_to_transfer_function([[1., 0.], [2., 3.]])
14601464
1461- In this example, the numerator matrix will be
1462- [[[1.0], [0.0]], [[2.0], [3.0]]]
1463- and the denominator matrix [[[1.0], [1.0]], [[1.0], [1.0]]]
1465+ will give a system with numerator matrix `[[[1.0], [0.0]], [[2.0],
1466+ [3.0]]]` and denominator matrix `[[[1.0], [1.0]], [[1.0], [1.0]]]`.
14641467
14651468 """
14661469 from .statesp import StateSpace
0 commit comments