diff scripts/general/accumarray.m @ 10962:efc0f560e690

tiny optimization in accumarray
author Jaroslav Hajek <highegg@gmail.com>
date Mon, 13 Sep 2010 07:12:52 +0200
parents be55736a0783
children 01ddaedd6ad5
line wrap: on
line diff
--- a/scripts/general/accumarray.m
+++ b/scripts/general/accumarray.m
@@ -71,7 +71,7 @@
   endif
 
   if (iscell (subs))
-    subs = cellfun (@(x) x(:), subs, "UniformOutput", false);
+    subs = cellfun (@vec, subs, "UniformOutput", false);
     ndims = numel (subs);
     if (ndims == 1)
       subs = subs{1};