love this one
28 attempts later, we finally made it
zeros are added to convert a logical to double.
nice
The first time I see this kind of bsxfun.
Looks like I have the lamest possible solution!
I think it would be funny to see this solution in action by an animation of iterations! :-)
this breaks with nan's, solution 6118 does not
need to fix the test suite to include non-sorted non-zero elements
wishful thinking: perhaps sort 'should' behave like relational operators...
826 Solvers
554 Solvers
Make a random, non-repeating vector.
3314 Solvers
Calculate the area of a triangle between three points
999 Solvers
Create an n-by-n null matrix and fill with ones certain positions
292 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!