# HG changeset patch # User jwe # Date 745106024 0 # Node ID 8d4431f4a00a41c2f590b0b083d73014697b4f90 # Parent 3cccff82b7a63e5c94921b9289c14bf181c2c1e4 [project @ 1993-08-11 21:53:44 by jwe] diff -r 3cccff82b7a6 -r 8d4431f4a00a scripts/control/lyap.m --- a/scripts/control/lyap.m Wed Aug 11 21:49:27 1993 +0000 +++ b/scripts/control/lyap.m Wed Aug 11 21:53:44 1993 +0000 @@ -23,13 +23,11 @@ # whichever is appropriate. if (nargin != 3 && nargin != 2) - error ("lyap: illegal number of arguments"); - return; + error ("usage: lyap (a, b {,c})"); endif if ((n = is_square(a)) == 0) error ("lyap: a is not square"); - return; endif if (nargin == 2) @@ -53,7 +51,6 @@ if (m != n) error ("lyap: a, b not conformably dimensioned"); - return; endif endif @@ -69,7 +66,6 @@ if ((m = is_square (b)) == 0) error ("lyap: b must be square in a sylvester equation"); - return; endif [n1,m1] = size(c);