Is there any straightforward way to create a histogram from a cell array like the one below? The spacing between the consecutive bars should be exactly the same and the labe
A solution that only uses built-in functions
[u,~,n] = unique(A(:)); B = accumarray(n, 1, [], @sum); bar(B) set(gca,'XTickLabel',u)