How to generate histogram from a given (x,y) dataset?
4 views (last 30 days)
From a set of x and y values (attached), I am trying to generate a histogram. I want the final plot to look like the one attached.
histogram(data, nbins, 'Binwidth', 2, 'BinLimits',[0,360], 'DisplayStyle','bar','LineStyle','-','FaceColor',[0.6350 0.0780,0.1840]
The data is a 13x2 matrix generated from x and y values. I am not getting the desired result.