Mercurial > forge
changeset 10747:2a5a3d043859 octave-forge
control: fix a problem where an error was raised about an "undefined" function issiso
author | paramaniac |
---|---|
date | Thu, 30 Aug 2012 07:28:18 +0000 |
parents | f0be4284114e |
children | c219c6c52b6e |
files | main/control/NEWS main/control/inst/sensitivity.m |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/main/control/NEWS Thu Aug 30 06:02:40 2012 +0000 +++ b/main/control/NEWS Thu Aug 30 07:28:18 2012 +0000 @@ -7,6 +7,10 @@ ** plot A selection of experiments from iddata identification datasets can be plotted by plot (dat, exp) instead of plot (dat(:,:,:,exp)). + +** sensitivity + Fixed a problem where an error was raised about an undefined function + "issiso". ===============================================================================
--- a/main/control/inst/sensitivity.m Thu Aug 30 06:02:40 2012 +0000 +++ b/main/control/inst/sensitivity.m Thu Aug 30 07:28:18 2012 +0000 @@ -109,12 +109,12 @@ if (length (Ms) > 1) error ("sensitivity: plotting only works for a single controller"); endif + if (iscell (L)) + L = L{1}; + endif if (! issiso (L)) error ("sensitivity: Nyquist plot requires SISO systems"); endif - if (iscell (L)) - L = L{1}; - endif [H, w] = __frequency_response__ (L, [], false, 0, "ext"); H = H(:);