diff scripts/control/base/nichols.m @ 3455:f758be6e1730

[project @ 2000-01-18 19:57:12 by hodelas] frequency response and sysprune functions allow input of signal names or signal indices.
author hodelas
date Tue, 18 Jan 2000 19:57:13 +0000
parents a6cc6bc220b3
children 92be67bc9301
line wrap: on
line diff
--- a/scripts/control/base/nichols.m
+++ b/scripts/control/base/nichols.m
@@ -37,8 +37,8 @@
 ##          (3) A "smoothing" routine is used to ensure that the plot phase does
 ##              not change excessively from point to point and that singular
 ##              points (e.g., crossovers from +/- 180) are accurately shown.
-##   outputs, inputs: the indices of the output(s) and input(s) to be used in
-##     the frequency response; see sysprune.
+##   outputs, inputs: the names or indices of the output(s) and input(s) 
+##     to be used in the frequency response; see sysprune.
 ## outputs:
 ##    mag, phase: the magnitude and phase of the frequency response
 ##       G(jw) or G(exp(jwT)) at the selected frequency values.
@@ -67,7 +67,7 @@
     inputs = [];
   endif
 
-  [f, w] = __bodquist__ (sys, w, outputs, inputs, "nichols");
+  [f, w, sys] = __bodquist__ (sys, w, outputs, inputs, "nichols");
 
   [stname,inname,outname] = sysgetsignals(sys);
   systsam = sysgettsam(sys);