I'd suggest adding test cases in which xlow<0 (and maybe also xhigh<0).
1432 Solvers
Find the two most distant points
1644 Solvers
252 Solvers
Return elements unique to either input
556 Solvers
423 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!