MATLAB: How to tick out several types in one graph 10 yearseach 5 yearstickyearly Hi I have histogram plot(x=time, y=numbers) Does anyone knows tick each year, major tick each 5 yrs , large tick 10 yrs. And displaying each 5 years. Such as (1970,1975,1980,…) Thank you for your help guys! Best Answer doc XTickdoc XTickLabel Related SolutionsMATLAB: How to tick out yearly Look at this exampled=datenum('01-01-2015'):datenum('01-01-2035');y=log(d);plot(d,y)a=datevec(d);[ii,jj]=unique(a(:,1));set(gca,'xtick',d(jj))datetick('x','yyyy','keepticks') MATLAB: How can i change the xlim in bar You mean like this?set(gca,'XTick',ceil(1970:2.5:2005)) Related QuestionImproving readability of Matlab graphHow to arrange xtick position.How to divide the existing tick values on the x-axisHow to get yearly sum values
Best Answer