Get from Ico-github-logo

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

  • aggregate(x, y, fun)
    AGGREGATE Aggregate values into cell array
  • README.m
    aggregate.m: aggregate values in a matrix
  • View all files
5.0 | 2 ratings Rate this file 5 Downloads (last 30 days) File Size: 9.77 KB File ID: #42577 Version: 1.1



Kelly Kearney (view profile)


11 Jul 2013 (Updated )

Group (and apply functions to) values in one matrix based on grouping variables in another

| Watch this File

File Information

Collect Matlab data into a cell array based on a grouping variable, similar to (but more flexible than) accumarray.

Required Products MATLAB
MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
29 Oct 2015 Jeff

Jeff (view profile)

Very nice, thanks

08 Sep 2015 John

John (view profile)

Great code, thanks Kelly! Cut runtime in half for computing a large group-level mean-deviation transformation.

03 Dec 2016 1.1

Linked to GitHub repository.

Contact us