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
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 LinuxCategories
Find more on Logic and Bit Operations in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |