I'm hoping there is a built-in function I don't know about that solves this problem. Perhaps accumarray?
5709 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
278 Solvers
Construct an index vector from two input vectors in vectorized fashion
176 Solvers
Simple date to serial no. conversion
113 Solvers
Volume of a sphere given its surface area
117 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!