??? Error: File: imMosaic.m Line: 78 Column: 9
Unbalanced or unexpected parenthesis or bracket.
should be written as for Matlab 2009
[M3, N3, ~] = size(img21);
[M2, N2, ~] = size(img21);

This function is exactly what I was looking for. Thanks for providing it, John!
I just discovered a minor bug:
It happened that I applied consolidate to x = 0.2 and y = [11 6.8].
[xc, yc] = consolidator(x,y, '@nanmean')
xc = 0.2
yc = 11
The last value of y is gone; the consolidator somehow "swallowed" it.
Although it does not make sense to consolidate an array that only has one row, the application of this function in this way can happen, especially when processing a lot of different arrays automatically.

5

07 May 2014

Consolidator
Consolidates common elements in x (may be n-dimensional), aggregating corresponding y.

Sorry John,
After I restarted everything started working great. Not sure what the problem was but doesn't seem to be related to the consolidator function.
Thanks for your attention

Comment only

15 Nov 2013

Consolidator
Consolidates common elements in x (may be n-dimensional), aggregating corresponding y.

Will - Sorry, but you need to be more clear about your problem. I can't guess at the issue. Simplest is to send me the data that has a problem, as consulting in the comments is not my choice.

Comment only