Really like your generic approach to solving this problem. In my case, I was misled by the test suite to provide a solution that works only for integral values.
1274 Solvers
843 Solvers
262 Solvers
Generate N equally spaced intervals between -L and L
573 Solvers
165 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!