File Exchange

image thumbnail

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

version 1.0.0.0 (3.97 KB) by Matthew Gunn
aggregate sections of an matrix based on group ids using a collapse function

0 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 (2021). 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 .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags
mex

Community Treasure Hunt

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

Start Hunting!