Get from Ico-github-logo

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

» Watch video

Highlights from
aggregate

  • aggregate(x, y, fun)
    AGGREGATE Aggregate values into cell array
  • View all files

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0
5.0 | 2 ratings Rate this file 1 Download (last 30 days) File Size: 4.88 KB File ID: #42577 Version: 1.1

aggregate

by

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
Description

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.

Updates
29 Mar 2016 1.1

Linked to GitHub repository.

Contact us