This is (more or less) cribbed from the USC contest winner's solution.
Very fast and very compact solution. Nice usage of complex to calculate distance between points and recursion.
Find common elements in matrix rows
1278 Solvers
Find the elements of a matrix according to a defined property.
73 Solvers
The Answer to Life, the Universe, and Everything
388 Solvers
Remove entire row and column in the matrix containing the input values
171 Solvers
Create a matrix with difference of each row of input matrix
63 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!