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
You can also use the histogram function as follows:
[C,~,ic] = unique(A); fig1 = figure; axes1 = axes('Parent',fig1,'XTickLabel',C,'XTick',1:length(C)); hold(axes1,'on'); histogram(ic)