aggregate sections of an matrix based on group ids using a collapse function

aggregate sections of an matrix based on group ids using a collapse function
51 Downloads
Updated 13 Nov 2015

View License

example:
[groups2, aggArray2] = mg_aggregate(array, groupIndex, @(x) sum(x, 1));
compile with:
mex mg_aggregate.cpp

Cite As

Matthew Gunn (2024). aggregate sections of an matrix based on group ids using a collapse function (https://www.mathworks.com/matlabcentral/fileexchange/53981-aggregate-sections-of-an-matrix-based-on-group-ids-using-a-collapse-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Logic and Bit Operations in Help Center and MATLAB Answers
Tags Add Tags
mex

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0