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

You are now following this Submission

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

Cite As

Matthew Gunn (2026). 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 .

Tags

Add Tags

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0