I have a list of dates of different years (in "Dates"-column), which I want to plot as a histogram over one year. I have thus converted the dates to day of year ("doy" column) and plotted it, see figure below.
My short code is:
histogram(file_mat.doy, 'BinWidth',5,'FaceColor',[0 .5 .5]);
I want the x-axis to show the months from Jan to Dec at equal intervals, instead of the day of year. How can I do that?