diff src/data.cc @ 8947:1e4b3149365a

allow size_equal called with 1 arg
author Jaroslav Hajek <highegg@gmail.com>
date Tue, 10 Mar 2009 12:27:51 +0100
parents c2099a4d12ea
children 5fa53d1b6247
line wrap: on
line diff
--- a/src/data.cc
+++ b/src/data.cc
@@ -2435,6 +2435,7 @@
 @deftypefn {Built-in Function} {} size_equal (@var{a}, @var{b}, @dots{})\n\
 Return true if the dimensions of all arguments agree.\n\
 Trailing singleton dimensions are ignored.\n\
+Called with a single argument, size_equal returns true.\n\
 @seealso{size, numel}\n\
 @end deftypefn")
 {
@@ -2442,7 +2443,7 @@
 
   int nargin = args.length ();
 
-  if (nargin >= 2)
+  if (nargin >= 1)
     {
       retval = true;