# HG changeset patch # User jwe # Date 770676042 0 # Node ID 370fabbab42b3e5d3758414e5e562d2a8541f6e3 # Parent d60d1658ea1296d957e1e2752fe12c7af0a1d2cf [project @ 1994-06-03 20:40:42 by jwe] diff --git a/scripts/general/rem.m b/scripts/general/rem.m --- 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