From: <par...@us...> - 2012-08-30 07:28:24
|
Revision: 10933 http://octave.svn.sourceforge.net/octave/?rev=10933&view=rev Author: paramaniac Date: 2012-08-30 07:28:18 +0000 (Thu, 30 Aug 2012) Log Message: ----------- control: fix a problem where an error was raised about an "undefined" function issiso Modified Paths: -------------- trunk/octave-forge/main/control/NEWS trunk/octave-forge/main/control/inst/sensitivity.m Modified: trunk/octave-forge/main/control/NEWS =================================================================== --- trunk/octave-forge/main/control/NEWS 2012-08-30 06:02:40 UTC (rev 10932) +++ trunk/octave-forge/main/control/NEWS 2012-08-30 07:28:18 UTC (rev 10933) @@ -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". =============================================================================== Modified: trunk/octave-forge/main/control/inst/sensitivity.m =================================================================== --- trunk/octave-forge/main/control/inst/sensitivity.m 2012-08-30 06:02:40 UTC (rev 10932) +++ trunk/octave-forge/main/control/inst/sensitivity.m 2012-08-30 07:28:18 UTC (rev 10933) @@ -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(:); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |