changeset 5195:5208182e2e62

[project @ 2005-03-08 19:04:12 by jwe]
author jwe
date Tue, 08 Mar 2005 19:04:12 +0000
parents cb213ce19827
children cd5cc2a80589
files scripts/ChangeLog scripts/general/repmat.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-08  John W. Eaton  <jwe@octave.org>
+
+	* general/repmat.m: Correctly diagnose 3-argument non-scalar
+	dimensions case.  From Matthew A Swabey <mas01r@ecs.soton.ac.uk>.
+
 2005-03-04  John W. Eaton  <jwe@octave.org>
 
 	* plot/clg.m: New file.
--- a/scripts/general/repmat.m
+++ b/scripts/general/repmat.m
@@ -35,7 +35,7 @@
   endif
 
   if (nargin == 3)
-    if (!isscalar (m) && !isscalar (n))
+    if (! (isscalar (m) && isscalar (n)))
       error ("repmat: with 3 arguments m and n must be scalar");
     endif
     idx = [m, n];