I'd suggest adding test cases in which xlow<0 (and maybe also xhigh<0).
1374 Solvers
Project Euler: Problem 10, Sum of Primes
722 Solvers
middleAsColumn: Return all but first and last element as a column vector
393 Solvers
371 Solvers
498 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!