How to implement Benford's law in MATLAB.
- by jameslocke
I want to implement a version of Benford's law (http://en.wikipedia.org/wiki/Benford%27s_law)
that basically asks for the first digit of a number to do analysis on the distribution.
1934---> 1
0.04 ---> 4
-56 ---> 5
How do you do this in MATLAB?