# HG changeset patch # User Jaroslav Hajek # Date 1265610027 -3600 # Node ID 297996005012ab358c8f9ce6fa58b41ab19d9316 # Parent 6ffed9bb55986434296d10d07f0fa9ed05ea4834 1 more small fix in accumarray diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2010-02-08 Jaroslav Hajek + + * general/accumarray.m: 1 more small fix. + 2010-02-06 Jaroslav Hajek * general/accumarray.m: Small fixes. diff --git a/scripts/general/accumarray.m b/scripts/general/accumarray.m --- a/scripts/general/accumarray.m +++ b/scripts/general/accumarray.m @@ -148,7 +148,7 @@ subs = num2cell (subs, 1); endif subs = sub2ind (sz, subs{:}); - elseif (length (sz) < 2) + elseif (! isempty (sz) && length (sz) < 2) error ("accumarray: needs at least 2 dimensions"); endif