@@ -111,7 +111,7 @@ def damp(self):
111111 Z = - real (splane_poles )/ wn
112112 return wn , Z , poles
113113
114- def frequency_response (self , omega , squeeze = True ):
114+ def frequency_response (self , omega , squeeze = None ):
115115 """Evaluate the linear time-invariant system at an array of angular
116116 frequencies.
117117
@@ -124,18 +124,19 @@ def frequency_response(self, omega, squeeze=True):
124124
125125 G(exp(j*omega*dt)) = mag*exp(j*phase).
126126
127- In general the system may be multiple input, multiple output (MIMO), where
128- `m = self.inputs` number of inputs and `p = self.outputs` number of
129- outputs.
127+ In general the system may be multiple input, multiple output (MIMO),
128+ where `m = self.inputs` number of inputs and `p = self.outputs` number
129+ of outputs.
130130
131131 Parameters
132132 ----------
133133 omega : float or array_like
134134 A list, tuple, array, or scalar value of frequencies in
135135 radians/sec at which the system will be evaluated.
136- squeeze : bool, optional (default=True)
137- If True and the system is single input single output (SISO), i.e. `m=1`,
138- `p=1`, return a 1D array rather than a 3D array.
136+ squeeze : bool, optional
137+ If True and the system is single-input single-output (SISO),
138+ return a 1D array rather than a 3D array. Default value (True)
139+ set by config.defaults['control.squeeze'].
139140
140141 Returns
141142 -------
@@ -147,7 +148,7 @@ def frequency_response(self, omega, squeeze=True):
147148 The wrapped phase in radians of the system frequency response.
148149 omega : ndarray
149150 The (sorted) frequencies at which the response was evaluated.
150-
151+
151152 """
152153 omega = np .sort (np .array (omega , ndmin = 1 ))
153154 if isdtime (self , strict = True ):
@@ -463,9 +464,8 @@ def damp(sys, doprint=True):
463464 (p .real , p .imag , d , w ))
464465 return wn , damping , poles
465466
466- def evalfr (sys , x , squeeze = True ):
467- """
468- Evaluate the transfer function of an LTI system for complex frequency x.
467+ def evalfr (sys , x , squeeze = None ):
468+ """Evaluate the transfer function of an LTI system for complex frequency x.
469469
470470 Returns the complex frequency response `sys(x)` where `x` is `s` for
471471 continuous-time systems and `z` for discrete-time systems, with
@@ -484,8 +484,9 @@ def evalfr(sys, x, squeeze=True):
484484 x : complex scalar or array_like
485485 Complex frequency(s)
486486 squeeze : bool, optional (default=True)
487- If True and `sys` is single input single output (SISO), i.e. `m=1`,
488- `p=1`, return a 1D array rather than a 3D array.
487+ If True and the system is single-input single-output (SISO), return a
488+ 1D array rather than a 3D array. Default value (True) set by
489+ config.defaults['control.squeeze'].
489490
490491 Returns
491492 -------
@@ -511,12 +512,12 @@ def evalfr(sys, x, squeeze=True):
511512 >>> # This is the transfer function matrix evaluated at s = i.
512513
513514 .. todo:: Add example with MIMO system
515+
514516 """
515517 return sys .__call__ (x , squeeze = squeeze )
516518
517- def freqresp (sys , omega , squeeze = True ):
518- """
519- Frequency response of an LTI system at multiple angular frequencies.
519+ def freqresp (sys , omega , squeeze = None ):
520+ """Frequency response of an LTI system at multiple angular frequencies.
520521
521522 In general the system may be multiple input, multiple output (MIMO), where
522523 `m = sys.inputs` number of inputs and `p = sys.outputs` number of
@@ -531,8 +532,9 @@ def freqresp(sys, omega, squeeze=True):
531532 evaluated. The list can be either a python list or a numpy array
532533 and will be sorted before evaluation.
533534 squeeze : bool, optional (default=True)
534- If True and `sys` is single input, single output (SISO), returns
535- 1D array rather than a 3D array.
535+ If True and the system is single-input single-output (SISO), return a
536+ 1D array rather than a 3D array. Default value (True) set by
537+ config.defaults['control.squeeze'].
536538
537539 Returns
538540 -------
@@ -579,6 +581,7 @@ def freqresp(sys, omega, squeeze=True):
579581 #>>> # input to the 1st output, and the phase (in radians) of the
580582 #>>> # frequency response from the 1st input to the 2nd output, for
581583 #>>> # s = 0.1i, i, 10i.
584+
582585 """
583586 return sys .frequency_response (omega , squeeze = squeeze )
584587
0 commit comments