I'd suggest adding test cases in which xlow<0 (and maybe also xhigh<0).
Number of 1s in the Binary Representation of a Number
362 Solvers
Project Euler: Problem 10, Sum of Primes
735 Solvers
Arrange vector in ascending order
628 Solvers
Rounding off numbers to n decimals
1212 Solvers
458 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!