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.
Convert Hard Drive marketing sizes to actual data sizes
61 Solvers
352 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3897 Solvers
Fahrenheit to Celsius converter
362 Solvers
228 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!