I'd suggest adding test cases in which xlow<0 (and maybe also xhigh<0).
234 Solvers
Number of 1s in a binary string
2991 Solvers
Make a run-length companion vector
519 Solvers
432 Solvers
375 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!