This solution is outdated. To rescore this solution, sign in.
-
2 Comments
ChrisR
on 6 Jul 2020
A clever and simple approach to deal with the pitfalls in the test suite. It can be easily extended to deal with other problematic values of the argument.
Rafael S.T. Vieira
on 24 Oct 2020
It took me a while to realize the same thing...
Suggested Problems
-
Find the alphabetic word product
3368 Solvers
-
Cell Counting: How Many Draws?
2116 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1119 Solvers
-
170 Solvers
-
7467 Solvers
More from this Author291
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!