I'd suggest adding test cases in which xlow<0 (and maybe also xhigh<0).
Create a cell array out of a struct
508 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
321 Solvers
505 Solvers
484 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!