There is an error in the test suite. The solutions act as though the value of numClass is always 4 when setting the bin width, but then use the correct value of numClass when doing the histogram.
I have fixed the error
Given an unsigned integer x, find the largest y by rearranging the bits in x
781 Solvers
651 Solvers
Matrix with different incremental runs
106 Solvers
Rotate input square matrix 90 degrees CCW without rot90
380 Solvers
120 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!