You probably know the function hist(x,n) to get the histogram. Now try to write the function yourself!
For the cheaters wanting to use the function hist(), this will make the assertion fail!
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers23
Suggested Problems
-
Return a list sorted by number of occurrences
2902 Solvers
-
12883 Solvers
-
Flip the main diagonal of a matrix
927 Solvers
-
The sum of the numbers in the vector
649 Solvers
-
Back to Basics - Find no. of elements in a matrix?
329 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Please start every test case with "%%". Refer to https://au.mathworks.com/matlabcentral/cody/problems/1896-index-one-element-in-each-vector-of-an-array-along-a-given-dimension#comment_10372