This solution is outdated. To rescore this solution, sign in.
-
1 Comment
Lingjun Ding
on 10 Jan 2021
this won't work when the point is not in middle of 2 elements, for example a=3.3 in test 1
Suggested Problems
-
Check to see if a Sudoku Puzzle is Solved
328 Solvers
-
Reverse the Words (not letters) of a String
451 Solvers
-
Back to basics 25 - Valid variable names
328 Solvers
-
Multiples of a Number in a Given Range
775 Solvers
-
373 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!