Code covered by the BSD License  

Highlights from
aggregate.m

Be the first to rate this file! 12 Downloads (last 30 days) File Size: 1.74 KB File ID: #42577

aggregate.m

by

 

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

| Watch this File

File Information
Description

This function groups together values of y, based on category values in x. It performs more or less like accumarray, except it allows x to be any value, not just indices, and y can have any number of columns.

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.

Contact us