I need some help with this function. Seems to be working except a column of data I'm working with. Tried using 'mean' and @nanmean and both result in a column filled with only NaNs. There is numeric data present, I can see it in the y variable, and it appears to show up in ycon as a 0 until line 258 where:
ycon(count==1,:) = y(ec==1,:)
ycon becomes nothing but NaNs
24 Jul 2013
Consolidates common elements in x (may be n-dimensional), aggregating corresponding y.