Mercurial > hg > octave-nkf
diff scripts/general/rem.m @ 447:370fabbab42b
[project @ 1994-06-03 20:40:42 by jwe]
author | jwe |
---|---|
date | Fri, 03 Jun 1994 20:40:42 +0000 |
parents | 16a24e76d6e0 |
children | 3470f1e25a79 |
line wrap: on
line diff
--- a/scripts/general/rem.m +++ b/scripts/general/rem.m @@ -1,4 +1,4 @@ -# Copyright (C) 1993 John W. Eaton +# Copyright (C) 1993, 1994 John W. Eaton # # This file is part of Octave. # @@ -26,8 +26,8 @@ error ("usage: rem (x, y)"); endif - if (any (size (x) != size (y))) - error ("rem: argument sizes must agree") + if (any (size (x) != size (y)) && ! (is_scalar (x) || is_scalar (y))) + error ("rem: argument sizes must agree"); endif # Matlab allows complex arguments, but as far as I can tell, that's a