I'm hoping there is a built-in function I don't know about that solves this problem. Perhaps accumarray?
833 Solvers
309 Solvers
Back to basics 11 - Max Integer
678 Solvers
Back to basics 24 - Symbolic variables
129 Solvers
377 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!