From bug-request at octave dot org Tue Mar 8 13:03:36 2005 Subject: Error in argument sanity checks in repmat.m From: "John W. Eaton" To: Matthew A Swabey Cc: bug at octave dot org Date: Tue, 8 Mar 2005 14:10:00 -0500 On 8-Mar-2005, Matthew A Swabey wrote: | Bug report for Octave 2.1.66 configured for i686-pc-cygwin | | Description: | ----------- | | In /usr/local/share/octave/2.1.66/m/general/repmat.m: | Testing the arguments when running the function the test for a 3 argument | invocation is bugged: | | Starting at line 37: | | if (nargin == 3) | if (!isscalar (m) && !isscalar (n)) | ********************* ^^ | This test should be ||, not && as it passes unless both are wrong. | ********************* | error ("repmat: with 3 arguments m and n must be scalar"); | endif Thanks, I made a similar change. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------