The following data display the number of errors per book for 20 publisher
2, 5, 2, 8, 2, 3, 5, 6, 1, 0, 2, 0, 1, 5, 0, 0, 4, 5, 1, 2
Now i want to compute a frequency table with a class of interval of size 2 and relative frequency by using MATLAB
.
I can make a frequency table by the command tabulate(x)
but do not finding any reference that clarify how to compute a frequency table with a class of interval of size 2
.