I'm hoping there is a built-in function I don't know about that solves this problem. Perhaps accumarray?
1409 Solvers
184 Solvers
Back to basics 4 - Search Path
325 Solvers
97 Solvers
73 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!