From: Bruno Luong on
Take a look at example 10 of the doc of accumarray:
http://www.mathworks.com/access/helpdesk/help/techdoc/ref/accumarray.html

In this example, the function handle "@(x) {x}" is used to group the "values" as cell per bin.

With something similar you can accomplish the task you want.

Bruno
From: Anthony Hopf on
Thank you Bruno... The extreme speed up I see using accumarray may negate the need to bin all of the index values for storage. But I will play with this more.

Anthony

"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hv4gu7$ark$1(a)fred.mathworks.com>...
> Take a look at example 10 of the doc of accumarray:
> http://www.mathworks.com/access/helpdesk/help/techdoc/ref/accumarray.html
>
> In this example, the function handle "@(x) {x}" is used to group the "values" as cell per bin.
>
> With something similar you can accomplish the task you want.
>
> Bruno